Class DOMDocumentSerializer

  • All Implemented Interfaces:
    FastInfosetSerializer, org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

    public class DOMDocumentSerializer
    extends Encoder
    The Fast Infoset DOM serializer.

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

    • Constructor Detail

      • DOMDocumentSerializer

        public DOMDocumentSerializer()
      • DOMDocumentSerializer

        public DOMDocumentSerializer​(boolean useLocalNameAsKeyForQualifiedNameLookup)
    • Method Detail

      • serialize

        public final void serialize​(org.w3c.dom.Node n)
                             throws java.io.IOException
        Serialize a Node.
        Parameters:
        n - the node to serialize.
        Throws:
        java.io.IOException
      • serialize

        public final void serialize​(org.w3c.dom.Document d)
                             throws java.io.IOException
        Serialize a Document.
        Parameters:
        d - the document to serialize.
        Throws:
        java.io.IOException
      • serializeElementAsDocument

        protected final void serializeElementAsDocument​(org.w3c.dom.Node e)
                                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • serializeElement

        protected final void serializeElement​(org.w3c.dom.Node e)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • serializeText

        protected final void serializeText​(org.w3c.dom.Node t)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • serializeCDATA

        protected final void serializeCDATA​(org.w3c.dom.Node t)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • serializeComment

        protected final void serializeComment​(org.w3c.dom.Node c)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • serializeProcessingInstruction

        protected final void serializeProcessingInstruction​(org.w3c.dom.Node pi)
                                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • encodeElement

        protected final void encodeElement​(java.lang.String namespaceURI,
                                           java.lang.String qName,
                                           java.lang.String localName)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • encodeAttribute

        protected final void encodeAttribute​(java.lang.String namespaceURI,
                                             java.lang.String qName,
                                             java.lang.String localName)
                                      throws java.io.IOException
        Throws:
        java.io.IOException