|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectAbstractFactory
org.extex.backend.documentWriter.DocumentWriterFactory
public class DocumentWriterFactory
This is the factory to provide an instance of a document writer.
The class to be instantiated can implements one or more interfaces which trigger special actions:
ConfigurableConfiguration is
passed in with the interface method. LogEnabledLogger is passed in with the interface
method. SingleDocumentStreamOutputStream is passed in with the interface
method. MultipleDocumentStreamOutputStreamFactory
is passed in with the interface method.
| Constructor Summary | |
|---|---|
DocumentWriterFactory(Configuration configuration,
java.util.logging.Logger logger)
Creates a new object. |
|
| Method Summary | |
|---|---|
boolean |
check(java.lang.String type)
Check that a given document writer type has a matching configuration. |
DocumentWriter |
newInstance(java.lang.String type,
OutputStreamFactory outFactory)
Provide a new instance of a document writer. |
void |
setOptions(DocumentWriterOptions options)
Setter for options. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DocumentWriterFactory(Configuration configuration,
java.util.logging.Logger logger)
throws ConfigurationException
configuration - the configuration to use for the factorylogger - the logger
ConfigurationException - in case of an error| Method Detail |
|---|
public DocumentWriter newInstance(java.lang.String type,
OutputStreamFactory outFactory)
throws DocumentWriterException
If the generated instance implements the interface SingleDocumentStream then the method setOutputStream of this interface is invoked.
If the generated instance implements the interface MultipleDocumentStream then the method setOutputStreamFactory of this interface is invoked.
type - the type of the document writeroutFactory - the factory for further output streams
DocumentWriterException - in case of a problem
ConfigurationException - in case of a configuration problem
public boolean check(java.lang.String type)
throws ConfigurationException
type - the document writer type
true iff a configuration exists
ConfigurationException - in case of an error; especially if the
configuration is not foundpublic void setOptions(DocumentWriterOptions options)
options - the dynamic access to the readable part of the context
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||