com.sun.xml.fastinfoset.stax
Class StAXDocumentSerializer

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by com.sun.xml.fastinfoset.Encoder
          extended by com.sun.xml.fastinfoset.stax.StAXDocumentSerializer
All Implemented Interfaces:
XMLStreamWriter, FastInfosetSerializer, LowLevelFastInfosetStreamWriter, ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class StAXDocumentSerializer
extends Encoder
implements XMLStreamWriter, LowLevelFastInfosetStreamWriter

The Fast Infoset StAX serializer.

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 OutputStream.


Field Summary
protected  String[] _attributesArray
          List of attributes qnames and values defined in the current element.
protected  int _attributesArrayIndex
           
protected  String _currentLocalName
          Local name of current element.
protected  String _currentPrefix
          Prefix of current element.
protected  String _currentUri
          Namespace of current element.
protected  String _encoding
           
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 _manager
           
protected  String[] _namespacesArray
          List of namespaces defined in the current element.
protected  int _namespacesArrayIndex
           
protected  NamespaceContextImplementation _nsContext
          Mapping between uris and prefixes.
protected  boolean[] _nsSupportContextStack
           
protected  int _stackCount
           
 
Fields inherited from class com.sun.xml.fastinfoset.Encoder
_b, _characterEncodingSchemeSystemDefault, _charBuffer, _markIndex, _octetBuffer, _octetBufferIndex, _s, _terminate, _v, _vData, attributeValueMapTotalCharactersConstraint, CHARACTER_ENCODING_SCHEME_SYSTEM_PROPERTY, characterContentChunkMapTotalCharactersConstraint, maxAttributeValueSize, maxCharacterContentChunkSize, minAttributeValueSize, minCharacterContentChunkSize
 
Fields inherited from interface org.jvnet.fastinfoset.FastInfosetSerializer
ATTRIBUTE_VALUE_MAP_MEMORY_CONSTRAINT, BUFFER_SIZE_PROPERTY, CHARACTER_CONTENT_CHUNK_MAP_MEMORY_CONSTRAINT, EXTERNAL_VOCABULARIES_PROPERTY, IGNORE_COMMENTS_FEATURE, IGNORE_DTD_FEATURE, IGNORE_PROCESSING_INSTRUCTIONS_FEATURE, IGNORE_WHITE_SPACE_TEXT_CONTENT_FEATURE, MAX_ATTRIBUTE_VALUE_SIZE, MAX_CHARACTER_CONTENT_CHUNK_SIZE, MIN_ATTRIBUTE_VALUE_SIZE, MIN_CHARACTER_CONTENT_CHUNK_SIZE, REGISTERED_ENCODING_ALGORITHMS_PROPERTY, UTF_16BE, UTF_8
 
Constructor Summary
StAXDocumentSerializer()
           
StAXDocumentSerializer(OutputStream outputStream)
           
StAXDocumentSerializer(OutputStream outputStream, StAXManager manager)
           
 
Method Summary
 void close()
           
protected  void encodeTerminationAndCurrentElement(boolean terminateAfter)
           
 void flush()
           
 int getLocalNameIndex()
          Get the current index that was applied to an [local name] of an Element or Attribute Information Item.
 NamespaceContext getNamespaceContext()
           
 int getNextAttributeIndex()
          Get the next index to apply to an Attribute Information Item.
 int getNextElementIndex()
          Get the next index to apply to an Element Information Item.
 int getNextLocalNameIndex()
          Get the next index to apply to an [local name] of an Element or Attribute Information Item.
 String getPrefix(String uri)
           
 Object getProperty(String name)
           
 void initiateLowLevelWriting()
          Initiate low level writing of an element fragment.
 void reset()
          Reset the encoder for reuse encoding another XML infoset.
 void setDefaultNamespace(String uri)
           
 void setEncoding(String encoding)
           
 void setManager(StAXManager manager)
           
 void setNamespaceContext(NamespaceContext context)
          Sets the current namespace context for prefix and uri bindings.
 void setPrefix(String prefix, String uri)
           
 void writeAttribute(String localName, String value)
           
 void writeAttribute(String namespaceURI, String localName, String value)
           
 void writeAttribute(String prefix, String namespaceURI, String localName, String value)
           
 void writeCData(String text)
           
 void writeCharacters(char[] text, int start, int len)
           
 void writeCharacters(String text)
           
 void writeComment(String data)
           
 void writeDefaultNamespace(String namespaceURI)
           
 void writeDTD(String dtd)
           
 void writeEmptyElement(String localName)
           
 void writeEmptyElement(String namespaceURI, String localName)
           
 void writeEmptyElement(String prefix, String localName, String namespaceURI)
           
 void writeEndDocument()
           
 void writeEndElement()
           
 void writeEntityRef(String name)
           
 boolean writeLowLevelAttribute(String prefix, String namespaceURI, String localName)
          Write an attribute.
 void writeLowLevelAttributeIndexed(int index)
           
 void writeLowLevelAttributeValue(String value)
           
 void writeLowLevelEndElement()
           
 void writeLowLevelEndNamespaces()
           
 void writeLowLevelEndStartElement()
           
 void writeLowLevelNamespace(String prefix, String namespaceName)
           
 void writeLowLevelOctets(byte[] octets, int length)
           
 void writeLowLevelStartAttributes()
           
 boolean writeLowLevelStartElement(int type, String prefix, String localName, String namespaceURI)
          Write the start of an element.
 void writeLowLevelStartElementIndexed(int type, int index)
           
 void writeLowLevelStartNameLiteral(int type, String prefix, byte[] utf8LocalName, String namespaceURI)
           
 void writeLowLevelStartNameLiteral(int type, String prefix, int localNameIndex, String namespaceURI)
           
 void writeLowLevelStartNamespaces()
           
 void writeLowLevelTerminationAndMark()
           
 void writeLowLevelText(char[] text, int length)
           
 void writeLowLevelText(String text)
           
 void writeNamespace(String prefix, String namespaceURI)
           
 void writeOctets(byte[] b, int start, int len)
           
 void writeProcessingInstruction(String target)
           
 void writeProcessingInstruction(String target, String data)
           
 void writeStartDocument()
           
 void writeStartDocument(String version)
           
 void writeStartDocument(String encoding, String version)
           
 void writeStartElement(String localName)
           
 void writeStartElement(String namespaceURI, String localName)
           
 void writeStartElement(String prefix, String localName, String namespaceURI)
           
 
Methods inherited from class com.sun.xml.fastinfoset.Encoder
canAddAttributeToTable, canAddCharacterContentToTable, encodeAIIBuiltInAlgorithmData, encodeAIIObjectAlgorithmData, encodeAIIOctetAlgorithmData, encodeAlphabetCharacters, encodeAttributeQualifiedNameOnSecondBit, encodeCharacters, encodeCharactersNoClone, encodeCIIBuiltInAlgorithmData, encodeCIIBuiltInAlgorithmDataAsCDATA, encodeCIIObjectAlgorithmData, encodeCIIOctetAlgorithmData, encodeComment, encodeCommentNoClone, encodeDateTimeFourBitCharacters, encodeDateTimeNonIdentifyingStringOnFirstBit, encodeDocumentTermination, encodeDocumentTypeDeclaration, encodeElementQualifiedNameOnThirdBit, encodeElementTermination, encodeFourBitCharacters, encodeHeader, encodeIdentifyingNonEmptyStringOnFirstBit, encodeInitialVocabulary, encodeLiteralAttributeQualifiedNameOnSecondBit, encodeLiteralElementQualifiedNameOnThirdBit, encodeNamespaceAttribute, encodeNonEmptyCharacterStringOnFifthBit, encodeNonEmptyCharacterStringOnFifthBit, encodeNonEmptyCharacterStringOnSeventhBit, encodeNonEmptyFourBitCharacterString, encodeNonEmptyFourBitCharacterStringOnSeventhBit, encodeNonEmptyNBitCharacterStringOnSeventhBit, encodeNonEmptyOctetStringOnSecondBit, encodeNonEmptyUTF8StringAsOctetString, encodeNonEmptyUTF8StringAsOctetString, encodeNonIdentifyingStringOnFirstBit, encodeNonIdentifyingStringOnFirstBit, encodeNonIdentifyingStringOnFirstBit, encodeNonIdentifyingStringOnFirstBit, encodeNonIdentifyingStringOnFirstBit, encodeNonIdentifyingStringOnThirdBit, encodeNonIdentifyingStringOnThirdBit, encodeNonIdentifyingStringOnThirdBit, encodeNonZeroInteger, encodeNonZeroIntegerOnFourthBit, encodeNonZeroIntegerOnSecondBitFirstBitOne, encodeNonZeroIntegerOnSecondBitFirstBitZero, encodeNonZeroIntegerOnThirdBit, encodeNonZeroOctetStringLength, encodeNonZeroOctetStringLengthOnFifthBit, encodeNonZeroOctetStringLengthOnSecondBit, encodeNonZeroOctetStringLengthOnSenventhBit, encodeNumericFourBitCharacters, encodeNumericNonIdentifyingStringOnFirstBit, encodeProcessingInstruction, encodeTermination, encodeUtf16String, encodeUtf16String, encodeUTF8String, encodeUTF8String, getAttributeValueMapMemoryLimit, getCharacterContentChunkMapMemoryLimit, getCharacterEncodingScheme, getIgnoreComments, getIgnoreDTD, getIgnoreProcesingInstructions, getIgnoreWhiteSpaceTextContent, getMaxAttributeValueSize, getMaxCharacterContentChunkSize, getMinAttributeValueSize, getMinCharacterContentChunkSize, getPrefixFromQualifiedName, getRegisteredEncodingAlgorithms, getVocabularyApplicationData, hasMark, isAttributeValueLengthMatchesLimit, isCharacterContentChunkLengthMatchesLimit, isWhiteSpace, isWhiteSpace, mark, resetMark, setAttributeValueMapMemoryLimit, setCharacterContentChunkMapMemoryLimit, setCharacterEncodingScheme, setExternalVocabulary, setIgnoreComments, setIgnoreDTD, setIgnoreProcesingInstructions, setIgnoreWhiteSpaceTextContent, setMaxAttributeValueSize, setMaxCharacterContentChunkSize, setMinAttributeValueSize, setMinCharacterContentChunkSize, setOutputStream, setRegisteredEncodingAlgorithms, setVocabulary, setVocabularyApplicationData, write, write, write
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_manager

protected StAXManager _manager

_encoding

protected String _encoding

_currentLocalName

protected String _currentLocalName
Local name of current element.


_currentUri

protected String _currentUri
Namespace of current element.


_currentPrefix

protected String _currentPrefix
Prefix of current element.


_inStartElement

protected boolean _inStartElement
This flag indicates when there is a pending start element event.


_isEmptyElement

protected boolean _isEmptyElement
This flag indicates if the current element is empty.


_attributesArray

protected String[] _attributesArray
List of attributes qnames and values defined in the current element.


_attributesArrayIndex

protected int _attributesArrayIndex

_nsSupportContextStack

protected boolean[] _nsSupportContextStack

_stackCount

protected int _stackCount

_nsContext

protected NamespaceContextImplementation _nsContext
Mapping between uris and prefixes.


_namespacesArray

protected String[] _namespacesArray
List of namespaces defined in the current element.


_namespacesArrayIndex

protected int _namespacesArrayIndex
Constructor Detail

StAXDocumentSerializer

public StAXDocumentSerializer()

StAXDocumentSerializer

public StAXDocumentSerializer(OutputStream outputStream)

StAXDocumentSerializer

public StAXDocumentSerializer(OutputStream outputStream,
                              StAXManager manager)
Method Detail

reset

public void reset()
Description copied from class: Encoder
Reset the encoder for reuse encoding another XML infoset.

Specified by:
reset in interface FastInfosetSerializer
Overrides:
reset in class Encoder

writeStartDocument

public void writeStartDocument()
                        throws XMLStreamException
Specified by:
writeStartDocument in interface XMLStreamWriter
Throws:
XMLStreamException

writeStartDocument

public void writeStartDocument(String version)
                        throws XMLStreamException
Specified by:
writeStartDocument in interface XMLStreamWriter
Throws:
XMLStreamException

writeStartDocument

public void writeStartDocument(String encoding,
                               String version)
                        throws XMLStreamException
Specified by:
writeStartDocument in interface XMLStreamWriter
Throws:
XMLStreamException

writeEndDocument

public void writeEndDocument()
                      throws XMLStreamException
Specified by:
writeEndDocument in interface XMLStreamWriter
Throws:
XMLStreamException

close

public void close()
           throws XMLStreamException
Specified by:
close in interface XMLStreamWriter
Throws:
XMLStreamException

flush

public void flush()
           throws XMLStreamException
Specified by:
flush in interface XMLStreamWriter
Throws:
XMLStreamException

writeStartElement

public void writeStartElement(String localName)
                       throws XMLStreamException
Specified by:
writeStartElement in interface XMLStreamWriter
Throws:
XMLStreamException

writeStartElement

public void writeStartElement(String namespaceURI,
                              String localName)
                       throws XMLStreamException
Specified by:
writeStartElement in interface XMLStreamWriter
Throws:
XMLStreamException

writeStartElement

public void writeStartElement(String prefix,
                              String localName,
                              String namespaceURI)
                       throws XMLStreamException
Specified by:
writeStartElement in interface XMLStreamWriter
Throws:
XMLStreamException

writeEmptyElement

public void writeEmptyElement(String localName)
                       throws XMLStreamException
Specified by:
writeEmptyElement in interface XMLStreamWriter
Throws:
XMLStreamException

writeEmptyElement

public void writeEmptyElement(String namespaceURI,
                              String localName)
                       throws XMLStreamException
Specified by:
writeEmptyElement in interface XMLStreamWriter
Throws:
XMLStreamException

writeEmptyElement

public void writeEmptyElement(String prefix,
                              String localName,
                              String namespaceURI)
                       throws XMLStreamException
Specified by:
writeEmptyElement in interface XMLStreamWriter
Throws:
XMLStreamException

writeEndElement

public void writeEndElement()
                     throws XMLStreamException
Specified by:
writeEndElement in interface XMLStreamWriter
Throws:
XMLStreamException

writeAttribute

public void writeAttribute(String localName,
                           String value)
                    throws XMLStreamException
Specified by:
writeAttribute in interface XMLStreamWriter
Throws:
XMLStreamException

writeAttribute

public void writeAttribute(String namespaceURI,
                           String localName,
                           String value)
                    throws XMLStreamException
Specified by:
writeAttribute in interface XMLStreamWriter
Throws:
XMLStreamException

writeAttribute

public void writeAttribute(String prefix,
                           String namespaceURI,
                           String localName,
                           String value)
                    throws XMLStreamException
Specified by:
writeAttribute in interface XMLStreamWriter
Throws:
XMLStreamException

writeNamespace

public void writeNamespace(String prefix,
                           String namespaceURI)
                    throws XMLStreamException
Specified by:
writeNamespace in interface XMLStreamWriter
Throws:
XMLStreamException

writeDefaultNamespace

public void writeDefaultNamespace(String namespaceURI)
                           throws XMLStreamException
Specified by:
writeDefaultNamespace in interface XMLStreamWriter
Throws:
XMLStreamException

writeComment

public void writeComment(String data)
                  throws XMLStreamException
Specified by:
writeComment in interface XMLStreamWriter
Throws:
XMLStreamException

writeProcessingInstruction

public void writeProcessingInstruction(String target)
                                throws XMLStreamException
Specified by:
writeProcessingInstruction in interface XMLStreamWriter
Throws:
XMLStreamException

writeProcessingInstruction

public void writeProcessingInstruction(String target,
                                       String data)
                                throws XMLStreamException
Specified by:
writeProcessingInstruction in interface XMLStreamWriter
Throws:
XMLStreamException

writeCData

public void writeCData(String text)
                throws XMLStreamException
Specified by:
writeCData in interface XMLStreamWriter
Throws:
XMLStreamException

writeDTD

public void writeDTD(String dtd)
              throws XMLStreamException
Specified by:
writeDTD in interface XMLStreamWriter
Throws:
XMLStreamException

writeEntityRef

public void writeEntityRef(String name)
                    throws XMLStreamException
Specified by:
writeEntityRef in interface XMLStreamWriter
Throws:
XMLStreamException

writeCharacters

public void writeCharacters(String text)
                     throws XMLStreamException
Specified by:
writeCharacters in interface XMLStreamWriter
Throws:
XMLStreamException

writeCharacters

public void writeCharacters(char[] text,
                            int start,
                            int len)
                     throws XMLStreamException
Specified by:
writeCharacters in interface XMLStreamWriter
Throws:
XMLStreamException

getPrefix

public String getPrefix(String uri)
                 throws XMLStreamException
Specified by:
getPrefix in interface XMLStreamWriter
Throws:
XMLStreamException

setPrefix

public void setPrefix(String prefix,
                      String uri)
               throws XMLStreamException
Specified by:
setPrefix in interface XMLStreamWriter
Throws:
XMLStreamException

setDefaultNamespace

public void setDefaultNamespace(String uri)
                         throws XMLStreamException
Specified by:
setDefaultNamespace in interface XMLStreamWriter
Throws:
XMLStreamException

setNamespaceContext

public void setNamespaceContext(NamespaceContext context)
                         throws XMLStreamException
Sets the current namespace context for prefix and uri bindings. This context becomes the root namespace context for writing and will replace the current root namespace context. Subsequent calls to setPrefix and setDefaultNamespace will bind namespaces using the context passed to the method as the root context for resolving namespaces. This method may only be called once at the start of the document. It does not cause the namespaces to be declared. If a namespace URI to prefix mapping is found in the namespace context it is treated as declared and the prefix may be used by the StreamWriter.

Specified by:
setNamespaceContext in interface XMLStreamWriter
Parameters:
context - the namespace context to use for this writer, may not be null
Throws:
XMLStreamException

getNamespaceContext

public NamespaceContext getNamespaceContext()
Specified by:
getNamespaceContext in interface XMLStreamWriter

getProperty

public Object getProperty(String name)
                   throws IllegalArgumentException
Specified by:
getProperty in interface XMLStreamWriter
Throws:
IllegalArgumentException

setManager

public void setManager(StAXManager manager)

setEncoding

public void setEncoding(String encoding)

writeOctets

public void writeOctets(byte[] b,
                        int start,
                        int len)
                 throws XMLStreamException
Throws:
XMLStreamException

encodeTerminationAndCurrentElement

protected void encodeTerminationAndCurrentElement(boolean terminateAfter)
                                           throws XMLStreamException
Throws:
XMLStreamException

initiateLowLevelWriting

public final void initiateLowLevelWriting()
                                   throws XMLStreamException
Description copied from interface: LowLevelFastInfosetStreamWriter
Initiate low level writing of an element fragment.

This method must be invoked before other low level method.

Specified by:
initiateLowLevelWriting in interface LowLevelFastInfosetStreamWriter
Throws:
XMLStreamException

getNextElementIndex

public final int getNextElementIndex()
Description copied from interface: LowLevelFastInfosetStreamWriter
Get the next index to apply to an Element Information Item.

This will increment the next obtained index such that:

 i = w.getNextElementIndex();
 j = w.getNextElementIndex();
 i == j + 1;
 

Specified by:
getNextElementIndex in interface LowLevelFastInfosetStreamWriter
Returns:
the index.

getNextAttributeIndex

public final int getNextAttributeIndex()
Description copied from interface: LowLevelFastInfosetStreamWriter
Get the next index to apply to an Attribute Information Item. This will increment the next obtained index such that:
 i = w.getNextAttributeIndex();
 j = w.getNextAttributeIndex();
 i == j + 1;
 

Specified by:
getNextAttributeIndex in interface LowLevelFastInfosetStreamWriter
Returns:
the index.

getLocalNameIndex

public final int getLocalNameIndex()
Description copied from interface: LowLevelFastInfosetStreamWriter
Get the current index that was applied to an [local name] of an Element or Attribute Information Item.

Specified by:
getLocalNameIndex in interface LowLevelFastInfosetStreamWriter
Returns:
the index.

getNextLocalNameIndex

public final int getNextLocalNameIndex()
Description copied from interface: LowLevelFastInfosetStreamWriter
Get the next index to apply to an [local name] of an Element or Attribute Information Item. This will increment the next obtained index such that:
 i = w.getNextLocalNameIndex();
 j = w.getNextLocalNameIndex();
 i == j + 1;
 

Specified by:
getNextLocalNameIndex in interface LowLevelFastInfosetStreamWriter
Returns:
the index.

writeLowLevelTerminationAndMark

public final void writeLowLevelTerminationAndMark()
                                           throws IOException
Specified by:
writeLowLevelTerminationAndMark in interface LowLevelFastInfosetStreamWriter
Throws:
IOException

writeLowLevelStartElementIndexed

public final void writeLowLevelStartElementIndexed(int type,
                                                   int index)
                                            throws IOException
Specified by:
writeLowLevelStartElementIndexed in interface LowLevelFastInfosetStreamWriter
Throws:
IOException

writeLowLevelStartElement

public final boolean writeLowLevelStartElement(int type,
                                               String prefix,
                                               String localName,
                                               String namespaceURI)
                                        throws IOException
Description copied from interface: LowLevelFastInfosetStreamWriter
Write the start of an element.

Specified by:
writeLowLevelStartElement in interface LowLevelFastInfosetStreamWriter
Returns:
true if element is indexed, otherwise false.
Throws:
IOException

writeLowLevelStartNamespaces

public final void writeLowLevelStartNamespaces()
                                        throws IOException
Specified by:
writeLowLevelStartNamespaces in interface LowLevelFastInfosetStreamWriter
Throws:
IOException

writeLowLevelNamespace

public final void writeLowLevelNamespace(String prefix,
                                         String namespaceName)
                                  throws IOException
Specified by:
writeLowLevelNamespace in interface LowLevelFastInfosetStreamWriter
Throws:
IOException

writeLowLevelEndNamespaces

public final void writeLowLevelEndNamespaces()
                                      throws IOException
Specified by:
writeLowLevelEndNamespaces in interface LowLevelFastInfosetStreamWriter
Throws:
IOException

writeLowLevelStartAttributes

public final void writeLowLevelStartAttributes()
                                        throws IOException
Specified by:
writeLowLevelStartAttributes in interface LowLevelFastInfosetStreamWriter
Throws:
IOException

writeLowLevelAttributeIndexed

public final void writeLowLevelAttributeIndexed(int index)
                                         throws IOException
Specified by:
writeLowLevelAttributeIndexed in interface LowLevelFastInfosetStreamWriter
Throws:
IOException

writeLowLevelAttribute

public final boolean writeLowLevelAttribute(String prefix,
                                            String namespaceURI,
                                            String localName)
                                     throws IOException
Description copied from interface: LowLevelFastInfosetStreamWriter
Write an attribute.

Specified by:
writeLowLevelAttribute in interface LowLevelFastInfosetStreamWriter
Returns:
true if attribute is indexed, otherwise false.
Throws:
IOException

writeLowLevelAttributeValue

public final void writeLowLevelAttributeValue(String value)
                                       throws IOException
Specified by:
writeLowLevelAttributeValue in interface LowLevelFastInfosetStreamWriter
Throws:
IOException

writeLowLevelStartNameLiteral

public final void writeLowLevelStartNameLiteral(int type,
                                                String prefix,
                                                byte[] utf8LocalName,
                                                String namespaceURI)
                                         throws IOException
Specified by:
writeLowLevelStartNameLiteral in interface LowLevelFastInfosetStreamWriter
Throws:
IOException

writeLowLevelStartNameLiteral

public final void writeLowLevelStartNameLiteral(int type,
                                                String prefix,
                                                int localNameIndex,
                                                String namespaceURI)
                                         throws IOException
Specified by:
writeLowLevelStartNameLiteral in interface LowLevelFastInfosetStreamWriter
Throws:
IOException

writeLowLevelEndStartElement

public final void writeLowLevelEndStartElement()
                                        throws IOException
Specified by:
writeLowLevelEndStartElement in interface LowLevelFastInfosetStreamWriter
Throws:
IOException

writeLowLevelEndElement

public final void writeLowLevelEndElement()
                                   throws IOException
Specified by:
writeLowLevelEndElement in interface LowLevelFastInfosetStreamWriter
Throws:
IOException

writeLowLevelText

public final void writeLowLevelText(char[] text,
                                    int length)
                             throws IOException
Specified by:
writeLowLevelText in interface LowLevelFastInfosetStreamWriter
Throws:
IOException

writeLowLevelText

public final void writeLowLevelText(String text)
                             throws IOException
Specified by:
writeLowLevelText in interface LowLevelFastInfosetStreamWriter
Throws:
IOException

writeLowLevelOctets

public final void writeLowLevelOctets(byte[] octets,
                                      int length)
                               throws IOException
Specified by:
writeLowLevelOctets in interface LowLevelFastInfosetStreamWriter
Throws:
IOException


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.