Field Summary |
|
final public static byte | EQUALS This is some byte that is often used. |
final public static byte | FORWARD This is some byte that is often used. |
final public static byte | GT This is some byte that is often used. |
final public static byte | LT This is some byte that is often used. |
final public static byte | NEWLINE This is some byte that is often used. |
final public static byte | QUOTE This is some byte that is often used. |
final public static byte | SPACE This is some byte that is often used. |
final public static byte | TAB This is some byte that is often used. |
protected boolean | closeStream |
protected Document | document This is the document that has to be written. |
protected boolean | open |
protected OutputStreamCounter | os The outputstream of this writer. |
protected Rectangle | pageSize The pageSize. |
protected boolean | pause |
Method Summary |
|
public boolean | add(Element element) Signals that an Element was added to the Document . |
protected void | addTabs(int indent) Writes a number of tabs. |
public void | close() Signals that the Document was closed and that no other
Elements will be added. |
public void | flush() Flushes the BufferedOutputStream . |
final public static byte[] | getISOBytes(String text) Converts a String into a Byte array
according to the ISO-8859-1 codepage. |
public boolean | isCloseStream() |
public boolean | isPaused() Checks if writing is paused. |
public boolean | newPage() Signals that an new page has to be started.
This does nothing. |
public void | open() Signals that the Document was opened. |
public void | pause() Let the writer know that all writing has to be paused. |
public void | resetFooter() Resets the footer of this document. |
public void | resetHeader() Resets the header of this document. |
public void | resetPageCount() Sets the page number to 0. |
public void | resume() Let the writer know that writing may be resumed. |
public void | setCloseStream(boolean closeStream) |
public void | setFooter(HeaderFooter footer) Changes the footer of this document. |
public void | setHeader(HeaderFooter header) Changes the header of this document. |
public boolean | setMarginMirroring(boolean MarginMirroring) |
public boolean | setMargins(float marginLeft, float marginRight, float marginTop, float marginBottom) Sets the margins.
This does nothing. |
public void | setPageCount(int pageN) Sets the page number. |
public boolean | setPageSize(Rectangle pageSize) Sets the pagesize. |
protected void | write(String string) Writes a String to the OutputStream . |
protected void | write(String key, String value) Writes a key-value pair to the outputstream. |
protected void | writeEnd(String tag) Writes an endtag to the outputstream. |
protected void | writeEnd() Writes an endtag to the outputstream. |
protected boolean | writeMarkupAttributes(Properties markup) Writes the markup attributes of the specified MarkupAttributes
object to the OutputStream .
Parameters: markup - a Properties collection to write. |
protected void | writeStart(String tag) Writes a starttag to the outputstream. |