|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.bind.v2.runtime.output.XmlOutputAbstractImpl
com.sun.xml.bind.v2.runtime.output.UTF8XmlOutput
com.sun.xml.bind.v2.runtime.output.IndentingUTF8XmlOutput
public final class IndentingUTF8XmlOutput
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(java.io.OutputStream out,
java.lang.String indentStr,
Encoded[] localNames,
CharacterEscapeHandler escapeHandler)
|
|
| Method Summary | |
|---|---|
void |
beginStartTag(int prefix,
java.lang.String localName)
|
void |
beginStartTag(Name name)
Writes a start tag. |
void |
endDocument(boolean fragment)
Called at the very end. |
void |
endTag(int prefix,
java.lang.String localName)
|
void |
endTag(Name name)
|
void |
text(Pcdata value,
boolean needSP)
Writes XML text with character escaping, if necessary. |
void |
text(java.lang.String value,
boolean needSP)
Writes XML text with character escaping, if necessary. |
| Methods inherited from class com.sun.xml.bind.v2.runtime.output.UTF8XmlOutput |
|---|
attribute, attribute, endStartTag, setHeader, startDocument, text, text, write |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IndentingUTF8XmlOutput(java.io.OutputStream out,
java.lang.String indentStr,
Encoded[] localNames,
CharacterEscapeHandler escapeHandler)
indentStr - set to null for no indentation and optimal performance.
otherwise the string is used for indentation.| Method Detail |
|---|
public void beginStartTag(int prefix,
java.lang.String localName)
throws java.io.IOException
beginStartTag in interface XmlOutputbeginStartTag in class UTF8XmlOutputjava.io.IOException
public void beginStartTag(Name name)
throws java.io.IOException
XmlOutputAbstractImpl
At this point XmlOutputAbstractImpl.nsContext holds namespace declarations needed for this
new element.
This method is used for writing tags that are indexed.
beginStartTag in interface XmlOutputbeginStartTag in class UTF8XmlOutputjava.io.IOException
public void endTag(Name name)
throws java.io.IOException
endTag in interface XmlOutputendTag in class UTF8XmlOutputjava.io.IOException
public void endTag(int prefix,
java.lang.String localName)
throws java.io.IOException
endTag in interface XmlOutputendTag in class UTF8XmlOutputjava.io.IOException
public void text(java.lang.String value,
boolean needSP)
throws java.io.IOException
XmlOutput
text in interface XmlOutputtext in class UTF8XmlOutputvalue - this string can contain characters that might need escaping
(such as '&' or '>')
java.io.IOException
public void text(Pcdata value,
boolean needSP)
throws java.io.IOException
XmlOutput
text in interface XmlOutputtext in class UTF8XmlOutputvalue - this string can contain characters that might need escaping
(such as '&' or '>')
java.io.IOException
public void endDocument(boolean fragment)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.stream.XMLStreamException
XmlOutputAbstractImpl
endDocument in interface XmlOutputendDocument in class UTF8XmlOutputfragment - false if we are writing the whole document.
java.io.IOException
org.xml.sax.SAXException
javax.xml.stream.XMLStreamException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||