java.lang.Objectcom.lowagie.text.DocWriter
All Implemented Interfaces:
DocListener
Direct Known Subclasses:
HtmlWriter, PdfCopy, PdfCopyFieldsImp, Wrt, XmlWriter, PdfWriter, PdfStamperImp, RtfWriter2, RtfWriter, PdfSmartCopy
Writer class for documents.
DocWriter is the abstract class of several writers such
as PdfWriter and HtmlWriter.
A DocWriter can be added as a DocListener
to a certain Document by getting an instance (see method
getInstance() in the specific writer-classes).
Every Element added to the original Document
will be written to the OutputStream of the listening
DocWriter.
| Field Summary | ||
|---|---|---|
| public static final byte | NEWLINE | This is some byte that is often used. |
| public static final byte | TAB | This is some byte that is often used. |
| public static final byte | LT | This is some byte that is often used. |
| public static final byte | SPACE | This is some byte that is often used. |
| public static final byte | EQUALS | This is some byte that is often used. |
| public static final byte | QUOTE | This is some byte that is often used. |
| public static final byte | GT | This is some byte that is often used. |
| public static final byte | FORWARD | This is some byte that is often used. |
| protected Rectangle | pageSize | The pageSize. |
| protected Document | document | This is the document that has to be written. |
| protected OutputStreamCounter | os | The outputstream of this writer. |
| protected boolean | open | Is the writer open for writing? |
| protected boolean | pause | Do we have to pause all writing actions? |
| protected boolean | closeStream | Closes the stream on document close |
| Constructor: |
|---|
|
DocWriter.
|
| Method from com.lowagie.text.DocWriter Summary: |
|---|
| add, addTabs, close, flush, getISOBytes, isCloseStream, isPaused, newPage, open, pause, resetFooter, resetHeader, resetPageCount, resume, setCloseStream, setFooter, setHeader, setMarginMirroring, setMargins, setPageCount, setPageSize, write, write, writeEnd, writeEnd, writeMarkupAttributes, writeStart |
| Methods from java.lang.Object: |
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from com.lowagie.text.DocWriter Detail: |
|---|
Element was added to the Document.
This method should be overridden in the specific |
|
Document was closed and that no other
Elements will be added. |
BufferedOutputStream. |
String into a Byte array
according to the ISO-8859-1 codepage. |
|
|
This does nothing. Has to be overridden if needed. |
Document was opened. |
|
This method should be overridden in the specific |
This method should be overridden in the specific |
This method should be overridden in the specific |
|
|
This method should be overridden in the specific |
This method should be overridden in the specific |
|
This does nothing. Has to be overridden if needed. |
This method should be overridden in the specific |
|
String to the OutputStream. |
|
|
|
MarkupAttributes
object to the OutputStream. |
|