com.sun.xml.bind.v2.runtime.output

Class IndentingUTF8XmlOutput

public final class IndentingUTF8XmlOutput extends UTF8XmlOutput

UTF8XmlOutput with indentation. TODO: not sure if it's a good idea to move the indenting functionality to another class. Doesn't have to be final, but it helps the JVM.
Constructor Summary
IndentingUTF8XmlOutput(OutputStream out, String indentStr, Encoded[] localNames, CharacterEscapeHandler escapeHandler)
Method Summary
voidbeginStartTag(int prefix, String localName)
voidbeginStartTag(Name name)
voidendDocument(boolean fragment)
voidendTag(Name name)
voidendTag(int prefix, String localName)
voidtext(String value, boolean needSP)
voidtext(Pcdata value, boolean needSP)

Constructor Detail

IndentingUTF8XmlOutput

public IndentingUTF8XmlOutput(OutputStream out, String indentStr, Encoded[] localNames, CharacterEscapeHandler escapeHandler)

Parameters: indentStr set to null for no indentation and optimal performance. otherwise the string is used for indentation.

Method Detail

beginStartTag

void beginStartTag(int prefix, String localName)

beginStartTag

void beginStartTag(Name name)

endDocument

void endDocument(boolean fragment)

endTag

void endTag(Name name)

endTag

void endTag(int prefix, String localName)

text

void text(String value, boolean needSP)

text

void text(Pcdata value, boolean needSP)