public class Printer
extends java.lang.Object
IndentPrinter supports indentation and line wrapping by
extending this class.| Constructor and Description |
|---|
Printer(java.io.Writer writer,
OutputFormat format) |
| Modifier and Type | Method and Description |
|---|---|
void |
breakLine() |
void |
breakLine(boolean preserveSpace) |
void |
enterDTD()
Called by any of the DTD handlers to enter DTD mode.
|
void |
flush()
Flush the output stream.
|
void |
flushLine(boolean preserveSpace) |
java.io.IOException |
getException() |
int |
getNextIndent() |
void |
indent() |
java.lang.String |
leaveDTD()
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() |
void |
printText(char ch) |
void |
printText(char[] chars,
int start,
int length) |
void |
printText(java.lang.String text) |
void |
printText(java.lang.StringBuffer text) |
void |
setNextIndent(int indent) |
void |
setThisIndent(int indent) |
void |
unindent() |
public Printer(java.io.Writer writer,
OutputFormat format)
public java.io.IOException getException()
public void enterDTD()
throws java.io.IOException
leaveDTD().java.io.IOExceptionpublic java.lang.String leaveDTD()
throws java.io.IOException
java.io.IOExceptionpublic void printText(java.lang.String text)
throws java.io.IOException
java.io.IOExceptionpublic void printText(java.lang.StringBuffer text)
throws java.io.IOException
java.io.IOExceptionpublic void printText(char[] chars,
int start,
int length)
throws java.io.IOException
java.io.IOExceptionpublic void printText(char ch)
throws java.io.IOException
java.io.IOExceptionpublic void printSpace()
throws java.io.IOException
java.io.IOExceptionpublic void breakLine()
throws java.io.IOException
java.io.IOExceptionpublic void breakLine(boolean preserveSpace)
throws java.io.IOException
java.io.IOExceptionpublic void flushLine(boolean preserveSpace)
throws java.io.IOException
java.io.IOExceptionpublic void flush()
throws java.io.IOException
java.io.IOExceptionpublic void indent()
public void unindent()
public int getNextIndent()
public void setNextIndent(int indent)
public void setThisIndent(int indent)
Copyright © 2010 - 2023 Adobe. All Rights Reserved