Class StAXDocumentSerializer

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

public class StAXDocumentSerializer extends Encoder implements XMLStreamWriter, org.jvnet.fastinfoset.stax.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 Details

    • _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 com.sun.xml.fastinfoset.util.NamespaceContextImplementation _nsContext
      Mapping between uris and prefixes.
    • _namespacesArray

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

      protected int _namespacesArrayIndex
  • Constructor Details

    • StAXDocumentSerializer

      public StAXDocumentSerializer()
    • StAXDocumentSerializer

      public StAXDocumentSerializer(OutputStream outputStream)
    • StAXDocumentSerializer

      public StAXDocumentSerializer(OutputStream outputStream, StAXManager manager)
  • Method Details