|
PageMixer API - 3.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jp.ne.dti.lares.foozy.pagemixer.mixer.PersistentProducer
Utility to handle persistent producer.
| Constructor Summary | |
PersistentProducer()
Constructor. |
|
PersistentProducer(SymbolSet symbolSet)
Constructor. |
|
| Method Summary | |
Producer |
create(java.io.InputStream stream,
java.lang.String encoding)
Create " Producer". |
Producer |
read(java.io.ObjectInputStream stream)
Read producer identified by specified id in. |
Producer |
read(java.lang.String filename)
Read producer from specified file. |
static void |
write(java.io.ObjectOutputStream stream,
Producer producer)
Write producer out to specified OutputStream. |
static void |
write(java.lang.String filename,
Producer producer)
Write producer out. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PersistentProducer()
This causes
HTMLSymbolSet
using to resolve symbol of tokens contained by producer.
If you want use another
SymbolSet,
use PersistentProducer(SymbolSet).
public PersistentProducer(SymbolSet symbolSet)
symbolSet - symbl set to resolve symbols of tokens| Method Detail |
public final Producer read(java.lang.String filename)
throws java.io.IOException,
java.lang.ClassNotFoundException
filename - of persistent Producerjava.io.IOException - thrown when I/O fail for some reasonsjava.lang.ClassNotFoundException - thrown in object reading in
public Producer read(java.io.ObjectInputStream stream)
throws java.io.IOException,
java.lang.ClassNotFoundException
stream - to read page fromjava.io.IOException - thrown when I/O fail for some reasonsjava.lang.ClassNotFoundException - thrown in object reading in
public static void write(java.lang.String filename,
Producer producer)
throws java.io.IOException
This causes writing producer out to specified filename.
If you want to write producer out to your custom output stream,
use write(ObjectOutputStream, Producer).
filename - to write producer outproducer - written outjava.io.IOException - thrown when I/O fail for some reasons
public static void write(java.io.ObjectOutputStream stream,
Producer producer)
throws java.io.IOException
This method does not close
specified ObjectOutputStream
Please close it explicitly after invocation of this method.
outStream - to write producer outproducer - written outjava.io.IOException - thrown when I/O fail for some reasons
public Producer create(java.io.InputStream stream,
java.lang.String encoding)
throws java.io.IOException
Producer".create in interface Producer.Factorystream - to read persistent producer inencoding - (this parameter is ignored)
|
PageMixer API - 3.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||