Class SAXDocumentSerializer

All Implemented Interfaces:
FastInfosetSerializer, EncodingAlgorithmContentHandler, ExtendedContentHandler, FastInfosetWriter, PrimitiveTypeContentHandler, RestrictedAlphabetContentHandler, ContentHandler, DTDHandler, EntityResolver, ErrorHandler, LexicalHandler
Direct Known Subclasses:
SAXDocumentSerializerWithPrefixMapping

public class SAXDocumentSerializer extends Encoder implements FastInfosetWriter
The Fast Infoset SAX serializer.

Instantiate this serializer to serialize a fast infoset document in accordance with the SAX API.

This utilizes the SAX API in a reverse manner to that of parsing. It is the responsibility of the client to call the appropriate event methods on the SAX handlers, and to ensure that such a sequence of methods calls results in the production well-formed fast infoset documents. The SAXDocumentSerializer performs no well-formed checks.

More than one fast infoset document may be encoded to the OutputStream.

  • Field Details

    • _elementHasNamespaces

      protected boolean _elementHasNamespaces
    • _charactersAsCDATA

      protected boolean _charactersAsCDATA
  • Constructor Details

    • SAXDocumentSerializer

      protected SAXDocumentSerializer(boolean v)
    • SAXDocumentSerializer

      public SAXDocumentSerializer()
  • Method Details