Instantiate this serializer to serialize a fast infoset document in accordance with the StAX API.
More than one fast infoset document may be encoded to the
java..
| Modifier and Type | Field and Description |
|---|---|
| protected String[] | _attributesArray
List of attributes qnames and values defined in the current element. |
| protected int | |
| protected String | _currentLocalName
Local name of current element. |
| protected String | _currentPrefix
Prefix of current element. |
| protected String | _currentUri
Namespace of current element. |
| protected String | |
| protected boolean | _inStartElement
This flag indicates when there is a pending start element event. |
| protected boolean | _isEmptyElement
This flag indicates if the current element is empty. |
| protected StAXManager | |
| protected String[] | _namespacesArray
List of namespaces defined in the current element. |
| protected int | |
| protected NamespaceContextImplementation | _nsContext
Mapping between uris and prefixes. |
| protected boolean[] | |
| protected int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements javax. Close this writer and free any resources associated with the writer. |
| private boolean | |
| private boolean | |
| private void | |
| private void | |
| protected void | |
| public void | flush()
Implements javax. Write any cached data to the underlying output mechanism. |
| public final int | getLocalNameIndex()
Implements org. Get the current index that was applied to an [local name] of an Element or Attribute Information Item. |
| public NamespaceContext | getNamespaceContext()
Implements javax. Returns the current namespace context. |
| public final int | getNextAttributeIndex()
Implements org. Get the next index to apply to an Attribute Information Item. |
| public final int | getNextElementIndex()
Implements org. Get the next index to apply to an Element Information Item. |
| public final int | getNextLocalNameIndex()
Implements org. Get the next index to apply to an [local name] of an Element or Attribute Information Item. |
| public String | getPrefix(String uri)
Implements javax. Gets the prefix the uri is bound to. |
| public Object | getProperty(String name)
Implements javax. Get the value of a feature/property from the underlying implementation |
| public final void | initiateLowLevelWriting()
Implements org. Initiate low level writing of an element fragment. |
| public void | reset()
Overrides com. Implements org. Reset the encoder for reuse encoding another XML infoset. |
| public void | setDefaultNamespace(String uri)
Implements javax. Binds a URI to the default namespace This URI is bound in the scope of the current START_ELEMENT / END_ELEMENT pair. |
| public void | |
| public void | |
| public void | setNamespaceContext(NamespaceContext
the namespace context to use for this writer, may not be null context)Implements javax. Sets the current namespace context for prefix and uri bindings. |
| public void | setPrefix(String prefix, String uri)
Implements javax. Sets the prefix the uri is bound to. |
| public void | writeAttribute(String localName, String value)
Implements javax. Writes an attribute to the output stream without a prefix. |
| public void | writeAttribute(String namespaceURI, String localName, String value)
Implements javax. Writes an attribute to the output stream |
| public void | writeAttribute(String prefix, String namespaceURI, String localName, String value)
Implements javax. Writes an attribute to the output stream |
| public void | writeCData(String text)
Implements javax. Writes a CData section |
| public void | writeCharacters(String text)
Implements javax. Write text to the output |
| public void | writeCharacters(char[] text, int start, int len)
Implements javax. Write text to the output |
| public void | writeComment(String data)
Implements javax. Writes an xml comment with the data enclosed |
| public void | writeDefaultNamespace(String namespaceURI)
Implements javax. Writes the default namespace to the stream |
| public void | |
| public void | writeEmptyElement(String localName)
Implements javax. Writes an empty element tag to the output |
| public void | writeEmptyElement(String namespaceURI, String localName)
Implements javax. Writes an empty element tag to the output |
| public void | writeEmptyElement(String prefix, String localName, String namespaceURI)
Implements javax. Writes an empty element tag to the output |
| public void | writeEndDocument()
Implements javax. Closes any start tags and writes corresponding end tags. |
| public void | writeEndElement()
Implements javax. Writes an end tag to the output relying on the internal state of the writer to determine the prefix and local name of the event. |
| public void | writeEntityRef(String name)
Implements javax. Writes an entity reference |
| public final boolean | writeLowLevelAttribute(String prefix, String namespaceURI, String localName)
Implements org. Write an attribute. |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | writeLowLevelNamespace(String prefix, String namespaceName)
Implements org.
|
| public final void | writeLowLevelOctets(byte[] octets, int length)
Implements org.
|
| public final void | |
| public final boolean | writeLowLevelStartElement(int type, String prefix, String localName, String namespaceURI)
Implements org. Write the start of an element. |
| public final void | writeLowLevelStartElementIndexed(int type, int index)
Implements org.
|
| public final void | writeLowLevelStartNameLiteral(int type, String prefix, byte[] utf8LocalName, String namespaceURI)
Implements org.
|
| public final void | writeLowLevelStartNameLiteral(int type, String prefix, int localNameIndex, String namespaceURI)
Implements org.
|
| public final void | |
| public final void | |
| public final void | writeLowLevelText(char[] text, int length)
Implements org.
|
| public final void | |
| public void | writeNamespace(String prefix, String namespaceURI)
Implements javax. Writes a namespace to the output stream If the prefix argument to this method is the empty string, "xmlns", or null this method will delegate to writeDefaultNamespace |
| public void | |
| public void | writeProcessingInstruction(String target)
Implements javax. Writes a processing instruction |
| public void | writeProcessingInstruction(String target, String data)
Implements javax. Writes a processing instruction |
| public void | writeStartDocument()
Implements javax. Write the XML Declaration. |
| public void | writeStartDocument(String version)
Implements javax. Write the XML Declaration. |
| public void | writeStartDocument(String encoding, String version)
Implements javax. Write the XML Declaration. |
| public void | writeStartElement(String localName)
Implements javax. Writes a start tag to the output. |
| public void | writeStartElement(String namespaceURI, String localName)
Implements javax. Writes a start tag to the output |
| public void | writeStartElement(String prefix, String localName, String namespaceURI)
Implements javax. Writes a start tag to the output |