org.apache.batik.transcoder.svg2svg
public class PrettyPrinter extends Object
Field Summary | |
---|---|
protected int | doctypeOption
The doctype option. |
protected int | documentWidth
The document width. |
static int | DOCTYPE_CHANGE |
static int | DOCTYPE_KEEP_UNCHANGED |
static int | DOCTYPE_REMOVE |
protected ErrorHandler | errorHandler
The error handler. |
protected boolean | format
Whether the output must be formatted. |
protected String | newline
The newline characters. |
protected OutputManager | output
The output manager. |
protected String | publicId
The public id. |
protected XMLScanner | scanner
The document scanner. |
protected String | systemId
The system id. |
protected int | tabulationWidth
The tabulation width. |
protected int | type
The type of the current lexical unit. |
protected Writer | writer
The writer used to output the document. |
protected String | xmlDeclaration
The XML declaration. |
Method Summary | |
---|---|
protected TranscoderException | fatalError(String key, Object[] params)
Creates a transcoder exception. |
protected char[] | getCurrentValue()
Returns the current lexical unit value. |
int | getDocumentWidth()
Returns whether the document width. |
boolean | getFormat()
Returns whether the output must be formatted. |
String | getNewline()
Returns the newline characters. |
int | getTabulationWidth()
Returns whether the tabulation width. |
void | print(Reader r, Writer w)
Prints an SVG document from the given reader to the given writer. |
protected void | printAttlist()
Prints an ATTLIST declaration. |
protected void | printChildren()
Prints the children of an element declaration. |
protected void | printContent(boolean spaceAtStart)
Prints the content of an element. |
protected void | printDoctype()
Prints the doctype. |
protected String | printElement()
Prints an element. |
protected void | printElementDeclaration()
Prints an element declaration. |
protected void | printEntityDeclaration()
Prints an entity declaration. |
protected void | printNotation()
Prints a notation declaration. |
protected void | printPI()
Prints a processing instruction. |
protected void | printXMLDecl()
Prints the XML declaration. |
void | setDoctypeOption(int i)
Sets the doctype option. |
void | setDocumentWidth(int i)
Sets the document width. |
void | setFormat(boolean b)
Sets the format attribute. |
void | setNewline(String s)
Sets the newline characters. |
void | setPublicId(String s)
Sets the public ID. |
void | setSystemId(String s)
Sets the system ID. |
void | setTabulationWidth(int i)
Sets the tabulation width. |
void | setXMLDeclaration(String s)
Sets the XML declaration text. |