XmlOutput
Implements the optimal methods, where defer to
the non-optimal methods.
| Modifier and Type | Field and Description |
|---|---|
| protected NamespaceContextImpl | nsContext
Set by the marshaller before the start tag is written for the root element. |
| protected int[] | nsUriIndex2prefixIndex
The conversion table from the namespace URI index to prefix index. |
| protected XMLSerializer |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | attribute(Name name, String value)
Implements org.
|
| public abstract void | attribute(int
-1 if this attribute does not have a prefix
(this handling differs from that of elements.) prefix, String localName, String value)Redeclares org.
|
| public void | beginStartTag(Name name)
Implements org. Writes a start tag. |
| public abstract void | beginStartTag(int prefix, String localName)
Redeclares org.
|
| public void | endDocument(boolean
false if we are writing the whole document. fragment)Implements org. Called at the very end. |
| public abstract void | |
| public void | |
| public abstract void | endTag(int prefix, String localName)
Redeclares org.
|
| public void | startDocument(XMLSerializer
the serializer, boolean XMLSerializer that coordinates this whole marshalling episode.true if we are marshalling a fragment. fragment, int[] nsUriIndex2prefixIndex, NamespaceContextImpl nsContext)Implements org. Called at the very beginning. |
| nsContext | back to summary |
|---|---|
| protected NamespaceContextImpl nsContext Set by the marshaller before the start tag is written for the root element. | |
| nsUriIndex2prefixIndex | back to summary |
|---|---|
| protected int[] nsUriIndex2prefixIndex The conversion table from the namespace URI index to prefix index.
This array is shared with | |
| serializer | back to summary |
|---|---|
| protected XMLSerializer serializer | |
| XmlOutputAbstractImpl | back to summary |
|---|---|
| protected XmlOutputAbstractImpl() Default constructor. | |
| attribute | back to summary |
|---|---|
| public void attribute(Name name, String value) throws IOException, XMLStreamException Implements org.
| |
| attribute | back to summary |
|---|---|
| public abstract void attribute(int prefix, String localName, String value) throws IOException, XMLStreamException Redeclares org.
| |
| beginStartTag | back to summary |
|---|---|
| public void beginStartTag(Name name) throws IOException, XMLStreamException Implements org. Writes a start tag.
At this point This method is used for writing tags that are indexed.
| |
| beginStartTag | back to summary |
|---|---|
| public abstract void beginStartTag(int prefix, String localName) throws IOException, XMLStreamException Redeclares org.
| |
| endDocument | back to summary |
|---|---|
| public void endDocument(boolean fragment) throws IOException, SAXException, XMLStreamException Implements org. Called at the very end.
| |
| endStartTag | back to summary |
|---|---|
| public abstract void endStartTag() throws IOException, SAXException Redeclares org.
| |
| endTag | back to summary |
|---|---|
| public void endTag(Name name) throws IOException, SAXException, XMLStreamException Implements org.
| |
| endTag | back to summary |
|---|---|
| public abstract void endTag(int prefix, String localName) throws IOException, SAXException, XMLStreamException Redeclares org.
| |
| startDocument | back to summary |
|---|---|
| public void startDocument(XMLSerializer serializer, boolean fragment, int[] nsUriIndex2prefixIndex, NamespaceContextImpl nsContext) throws IOException, SAXException, XMLStreamException Implements org. Called at the very beginning.
| |