| java.lang.Object org.jasig.portal.serialize.Printer
All known Subclasses: org.jasig.portal.serialize.IndentPrinter,
Printer | public class Printer (Code) | | The printer is responsible for sending text to the output stream
or writer. This class performs direct writing for efficiency.
IndentPrinter supports indentation and line wrapping by
extending this class.
version: $Revision: 36559 $ $Date: 2006-04-28 11:38:13 -0700 (Fri, 28 Apr 2006) $ author: Assaf Arkin |
_docWriter | protected Writer _docWriter(Code) | | Holds a reference to the document writer while we are
in DTD mode.
|
_dtdWriter | protected StringWriter _dtdWriter(Code) | | The DTD writer. When we switch to DTD mode, all output is
accumulated in this DTD writer. When we switch out of it,
the output is obtained as a string. Must not be reset to
null until we're done with the document.
|
_exception | protected IOException _exception(Code) | | Holds the exception thrown by the serializer. Exceptions do not cause
the serializer to quit, but are held and one is thrown at the end.
|
_format | final protected OutputFormat _format(Code) | | The output format associated with this serializer. This will never
be a null reference. If no format was passed to the constructor,
the default one for this document type will be used. The format
object is never changed by the serializer.
|
_writer | protected Writer _writer(Code) | | The writer to which the document is written.
|
enterDTD | public void enterDTD() throws IOException(Code) | | Called by any of the DTD handlers to enter DTD mode.
Once entered, all output will be accumulated in a string
that can be printed as part of the document's DTD.
This method may be called any number of time but will only
have affect the first time it's called. To exist DTD state
and get the accumulated DTD, call
Printer.leaveDTD .
|
flush | public void flush() throws IOException(Code) | | Flush the output stream. Must be called when done printing
the document, otherwise some text might be buffered.
|
getNextIndent | public int getNextIndent()(Code) | | |
indent | public void indent()(Code) | | |
leaveDTD | public String leaveDTD() throws IOException(Code) | | Called by the root element to leave DTD mode and if any
DTD parts were printer, will return a string with their
textual content.
|
printText | public void printText(char[] chars, int start, int length) throws IOException(Code) | | |
setNextIndent | public void setNextIndent(int indent)(Code) | | |
setThisIndent | public void setThisIndent(int indent)(Code) | | |
unindent | public void unindent()(Code) | | |
|
|