|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.backend.documentWriter.dump.DumpDocumentWriter
public class DumpDocumentWriter
This is an implementation of a document writer which can act both as sample and as tool for testing.
| Constructor Summary | |
|---|---|
DumpDocumentWriter(DocumentWriterOptions opts)
Creates a new object. |
|
| Method Summary | |
|---|---|
void |
close()
This method is invoked upon the end of the processing. |
void |
configure(Configuration config)
Configure an object according to a given Configuration. |
java.lang.String |
getExtension()
Getter for the extension associated with this kind of output. |
void |
setOutputStream(java.io.OutputStream outStream)
Setter for the output stream. |
void |
setParameter(java.lang.String name,
java.lang.String value)
Setter for a named parameter. |
void |
setTree(boolean tree)
Setter for tree. |
int |
shipout(Page page)
This is the entry point for the document writer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DumpDocumentWriter(DocumentWriterOptions opts)
opts - the dynamic access to the context| Method Detail |
|---|
public void close()
throws java.io.IOException
close in interface DocumentWriterjava.io.IOException - in case of an IO exceptionDocumentWriter.close()
public void configure(Configuration config)
throws ConfigurationException
configure in interface Configurableconfig - the configuration object to consider
ConfigurationException - in case that something went wrongConfigurable.configure(
org.extex.framework.configuration.Configuration)public java.lang.String getExtension()
getExtension in interface DocumentWriterDocumentWriter.getExtension()public void setOutputStream(java.io.OutputStream outStream)
setOutputStream in interface SingleDocumentStreamoutStream - the output streamSingleDocumentStream.setOutputStream(
java.io.OutputStream)
public void setParameter(java.lang.String name,
java.lang.String value)
setParameter in interface DocumentWritername - the name of the parametervalue - the value of the parameterDocumentWriter.setParameter(
java.lang.String, java.lang.String)public void setTree(boolean tree)
tree - the tree to set
public int shipout(Page page)
throws DocumentWriterException
shipout in interface DocumentWriterpage - the page to send
DocumentWriterException - in case of an errorDocumentWriter.shipout(
org.extex.typesetter.type.page.Page)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||