|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.backend.documentWriter.rtf.RtfDocument
org.extex.backend.documentWriter.rtf.RtfDocumentWriter
public class RtfDocumentWriter
This class provides a base implementation of a RTF document writer.
| Constructor Summary | |
|---|---|
RtfDocumentWriter(DocumentWriterOptions options)
Creates a new object. |
|
| Method Summary | |
|---|---|
void |
close()
This method is invoked upon the end of the processing. |
void |
configure(Configuration config)
|
java.lang.String |
getExtension()
Getter for the extension associated with this kind of output. |
void |
setColorConverter(ColorConverter c)
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 org.extex.backend.documentWriter.rtf.RtfDocument |
|---|
getAuthor, getCreator, getTitle, mapColor, mapFont, newPage, put, put, setAuthor, setCreator, setTitle, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RtfDocumentWriter(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)
org.extex.framework.configuration.Configurable#configure(
org.extex.framework.configuration.Configuration)public java.lang.String getExtension()
getExtension in interface DocumentWriterDocumentWriter.getExtension()public void setColorConverter(ColorConverter c)
setColorConverter in interface ColorAwarec - 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
If the page is null then no page has to be shipped and 0
has to be returned.
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 | |||||||||