| Modifier and Type | Field and Description |
|---|---|
| private final AttributesImpl | |
| private final Stack | |
| private final LexicalHandler | |
| private final Stack | |
| private final ContentHandler |
| Access | Constructor and Description |
|---|---|
| public | |
| public | SaxSerializer(ContentHandler
writer handler, LexicalHandler writer for comments and CDATA lex)Creates an |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | beginStartTag(String uri, String localName, String prefix)
Implements com. Begins writing a start tag. |
| public void | |
| public void | comment(StringBuilder comment)
Implements com. Writes a comment. |
| public void | endDocument()
Implements com. The last method to be called. |
| public void | endStartTag(String uri, String localName, String prefix)
Implements com. Completes the start tag. |
| public void | |
| public void | |
| private static String | |
| public void | startDocument()
Implements com. The first method to be called. |
| public void | |
| public void | writeAttribute(String uri, String localName, String prefix, StringBuilder value)
Implements com. Writes an attribute. |
| public void | writeXmlns(String prefix, String uri)
Implements com. Writes a namespace declaration. |
| attrs | back to summary |
|---|---|
| private final AttributesImpl attrs | |
| elementBindings | back to summary |
|---|---|
| private final Stack<String> elementBindings | |
| lexical | back to summary |
|---|---|
| private final LexicalHandler lexical | |
| prefixBindings | back to summary |
|---|---|
| private final Stack<String> prefixBindings | |
| writer | back to summary |
|---|---|
| private final ContentHandler writer | |
| SaxSerializer | back to summary |
|---|---|
| public SaxSerializer(ContentHandler handler) | |
| SaxSerializer | back to summary |
|---|---|
| public SaxSerializer(ContentHandler handler, LexicalHandler lex) Creates an
Sepcifying a non-null
| |
| SaxSerializer | back to summary |
|---|---|
| public SaxSerializer(ContentHandler handler, LexicalHandler lex, boolean indenting) | |
| SaxSerializer | back to summary |
|---|---|
| public SaxSerializer(SAXResult result) | |
| beginStartTag | back to summary |
|---|---|
| public void beginStartTag(String uri, String localName, String prefix) Implements com. Doc from com. Begins writing a start tag.
| |
| cdata | back to summary |
|---|---|
| public void cdata(StringBuilder text) Implements com. Doc from com. Writes CDATA.
| |
| comment | back to summary |
|---|---|
| public void comment(StringBuilder comment) Implements com. Doc from com. Writes a comment.
| |
| endDocument | back to summary |
|---|---|
| public void endDocument() Implements com. Doc from com. The last method to be called.
| |
| endStartTag | back to summary |
|---|---|
| public void endStartTag(String uri, String localName, String prefix) Implements com. Doc from com. Completes the start tag.
| |
| endTag | back to summary |
|---|---|
| public void endTag() Implements com. Doc from com. Writes an end tag.
| |
| flush | back to summary |
|---|---|
| public void flush() Implements com. Doc from com. Flush the buffer.
This method is called when applications invoke
| |
| getQName | back to summary |
|---|---|
| private static String getQName(String prefix, String localName) | |
| startDocument | back to summary |
|---|---|
| public void startDocument() Implements com. Doc from com. The first method to be called.
| |
| text | back to summary |
|---|---|
| public void text(StringBuilder text) Implements com. Doc from com. Writes PCDATA.
| |
| writeAttribute | back to summary |
|---|---|
| public void writeAttribute(String uri, String localName, String prefix, StringBuilder value) Implements com. Doc from com. Writes an attribute.
| |
| writeXmlns | back to summary |
|---|---|
| public void writeXmlns(String prefix, String uri) Implements com. Doc from com. Writes a namespace declaration.
| |