public class Printer extends Object
IndentPrinter
supports indentation and line wrapping by
extending this class.Modifier and Type | Field and Description |
---|---|
protected Writer |
_docWriter
Deprecated.
Holds a reference to the document writer while we are
in DTD mode.
|
protected StringWriter |
_dtdWriter
Deprecated.
The DTD writer.
|
protected IOException |
_exception
Deprecated.
Holds the exception thrown by the serializer.
|
protected OutputFormat |
_format
Deprecated.
The output format associated with this serializer.
|
protected Writer |
_writer
Deprecated.
The writer to which the document is written.
|
Constructor and Description |
---|
Printer(Writer writer,
OutputFormat format)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
breakLine()
Deprecated.
|
void |
breakLine(boolean preserveSpace)
Deprecated.
|
void |
enterDTD()
Deprecated.
Called by any of the DTD handlers to enter DTD mode.
|
void |
flush()
Deprecated.
Flush the output stream.
|
void |
flushLine(boolean preserveSpace)
Deprecated.
|
IOException |
getException()
Deprecated.
|
int |
getNextIndent()
Deprecated.
|
void |
indent()
Deprecated.
|
String |
leaveDTD()
Deprecated.
Called by the root element to leave DTD mode and if any
DTD parts were printer, will return a string with their
textual content.
|
void |
printSpace()
Deprecated.
|
void |
printText(char ch)
Deprecated.
|
void |
printText(char[] chars,
int start,
int length)
Deprecated.
|
void |
printText(String text)
Deprecated.
|
void |
printText(StringBuffer text)
Deprecated.
|
void |
setNextIndent(int indent)
Deprecated.
|
void |
setThisIndent(int indent)
Deprecated.
|
void |
unindent()
Deprecated.
|
protected final OutputFormat _format
protected Writer _writer
protected StringWriter _dtdWriter
protected Writer _docWriter
protected IOException _exception
public Printer(Writer writer, OutputFormat format)
public IOException getException()
public void enterDTD() throws IOException
leaveDTD()
.IOException
public String leaveDTD() throws IOException
IOException
public void printText(String text) throws IOException
IOException
public void printText(StringBuffer text) throws IOException
IOException
public void printText(char[] chars, int start, int length) throws IOException
IOException
public void printText(char ch) throws IOException
IOException
public void printSpace() throws IOException
IOException
public void breakLine() throws IOException
IOException
public void breakLine(boolean preserveSpace) throws IOException
IOException
public void flushLine(boolean preserveSpace) throws IOException
IOException
public void flush() throws IOException
IOException
public void indent()
public void unindent()
public int getNextIndent()
public void setNextIndent(int indent)
public void setThisIndent(int indent)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.