|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.backend.documentWriter.dvix.DviDocumentWriter
public class DviDocumentWriter
This class provides a base implementation of a DVI document writer.
| Constructor Summary | |
|---|---|
DviDocumentWriter(DocumentWriterOptions options)
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. |
protected void |
optimize(java.util.List<DviXxx> list)
Optimize the description of a single page. |
void |
setColorConverter(ColorConverter converter)
Setter for the color converter. |
void |
setOutputStream(java.io.OutputStream writer)
Setter for the output stream. |
void |
setParameter(java.lang.String name,
java.lang.String value)
Setter for a named parameter. |
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 DviDocumentWriter(DocumentWriterOptions options)
options - the document writer options| Method Detail |
|---|
public void close()
throws GeneralException,
java.io.IOException
close in interface DocumentWriterGeneralException - in case of a general exceptionjava.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()protected void optimize(java.util.List<DviXxx> list)
list - the list of codes for the pagepublic void setColorConverter(ColorConverter converter)
setColorConverter in interface ColorAwareconverter - the color converterColorAware.setColorConverter(
org.extex.color.ColorConverter)public void setOutputStream(java.io.OutputStream writer)
setOutputStream in interface SingleDocumentStreamwriter - 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 int shipout(Page page)
throws GeneralException,
java.io.IOException
shipout in interface DocumentWriterpage - the page to send
GeneralException - in case of a general exceptionjava.io.IOException - in case of an IO exceptionDocumentWriter.shipout(
org.extex.typesetter.type.page.Page)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||