Class SAXStreamer

    • Field Detail

      • ISINDEX_PROMPT

        private static final char[] ISINDEX_PROMPT
      • contentHandler

        private org.xml.sax.ContentHandler contentHandler
      • lexicalHandler

        private org.xml.sax.ext.LexicalHandler lexicalHandler
    • Constructor Detail

      • SAXStreamer

        SAXStreamer()
    • Method Detail

      • addAttributesToElement

        protected void addAttributesToElement​(org.xml.sax.Attributes element,
                                              HtmlAttributes attributes)
                                       throws org.xml.sax.SAXException
        Specified by:
        addAttributesToElement in class TreeBuilder<org.xml.sax.Attributes>
        Throws:
        org.xml.sax.SAXException
      • appendCharacters

        protected void appendCharacters​(org.xml.sax.Attributes parent,
                                        char[] buf,
                                        int start,
                                        int length)
                                 throws org.xml.sax.SAXException
        Specified by:
        appendCharacters in class TreeBuilder<org.xml.sax.Attributes>
        Throws:
        org.xml.sax.SAXException
      • appendChildrenToNewParent

        protected void appendChildrenToNewParent​(org.xml.sax.Attributes oldParent,
                                                 org.xml.sax.Attributes newParent)
                                          throws org.xml.sax.SAXException
        Specified by:
        appendChildrenToNewParent in class TreeBuilder<org.xml.sax.Attributes>
        Throws:
        org.xml.sax.SAXException
      • appendComment

        protected void appendComment​(org.xml.sax.Attributes parent,
                                     char[] buf,
                                     int start,
                                     int length)
                              throws org.xml.sax.SAXException
        Specified by:
        appendComment in class TreeBuilder<org.xml.sax.Attributes>
        Throws:
        org.xml.sax.SAXException
      • appendCommentToDocument

        protected void appendCommentToDocument​(char[] buf,
                                               int start,
                                               int length)
                                        throws org.xml.sax.SAXException
        Specified by:
        appendCommentToDocument in class TreeBuilder<org.xml.sax.Attributes>
        Throws:
        org.xml.sax.SAXException
      • createElement

        protected org.xml.sax.Attributes createElement​(java.lang.String ns,
                                                       java.lang.String name,
                                                       HtmlAttributes attributes)
                                                throws org.xml.sax.SAXException
        Specified by:
        createElement in class TreeBuilder<org.xml.sax.Attributes>
        Throws:
        org.xml.sax.SAXException
      • createHtmlElementSetAsRoot

        protected org.xml.sax.Attributes createHtmlElementSetAsRoot​(HtmlAttributes attributes)
                                                             throws org.xml.sax.SAXException
        Specified by:
        createHtmlElementSetAsRoot in class TreeBuilder<org.xml.sax.Attributes>
        Throws:
        org.xml.sax.SAXException
      • detachFromParent

        protected void detachFromParent​(org.xml.sax.Attributes element)
                                 throws org.xml.sax.SAXException
        Specified by:
        detachFromParent in class TreeBuilder<org.xml.sax.Attributes>
        Throws:
        org.xml.sax.SAXException
      • appendElement

        protected void appendElement​(org.xml.sax.Attributes child,
                                     org.xml.sax.Attributes newParent)
                              throws org.xml.sax.SAXException
        Specified by:
        appendElement in class TreeBuilder<org.xml.sax.Attributes>
        Throws:
        org.xml.sax.SAXException
      • hasChildren

        protected boolean hasChildren​(org.xml.sax.Attributes element)
                               throws org.xml.sax.SAXException
        Specified by:
        hasChildren in class TreeBuilder<org.xml.sax.Attributes>
        Throws:
        org.xml.sax.SAXException
      • setContentHandler

        public void setContentHandler​(org.xml.sax.ContentHandler handler)
      • setLexicalHandler

        public void setLexicalHandler​(org.xml.sax.ext.LexicalHandler handler)
      • end

        protected void end()
                    throws org.xml.sax.SAXException
        Overrides:
        end in class TreeBuilder<org.xml.sax.Attributes>
        Throws:
        org.xml.sax.SAXException
        See Also:
        TreeBuilder.end()
      • start

        protected void start​(boolean fragment)
                      throws org.xml.sax.SAXException
        Overrides:
        start in class TreeBuilder<org.xml.sax.Attributes>
        Throws:
        org.xml.sax.SAXException
        See Also:
        nu.validator.htmlparser.impl.TreeBuilder#start()
      • fatal

        protected void fatal()
                      throws org.xml.sax.SAXException
        Description copied from class: TreeBuilder
        Reports an condition that would make the infoset incompatible with XML 1.0 as fatal.
        Overrides:
        fatal in class TreeBuilder<org.xml.sax.Attributes>
        Throws:
        org.xml.sax.SAXException
        org.xml.sax.SAXParseException
      • insertFosterParentedCharacters

        protected void insertFosterParentedCharacters​(char[] buf,
                                                      int start,
                                                      int length,
                                                      org.xml.sax.Attributes table,
                                                      org.xml.sax.Attributes stackParent)
                                               throws org.xml.sax.SAXException
        Specified by:
        insertFosterParentedCharacters in class TreeBuilder<org.xml.sax.Attributes>
        Throws:
        org.xml.sax.SAXException
      • insertFosterParentedChild

        protected void insertFosterParentedChild​(org.xml.sax.Attributes child,
                                                 org.xml.sax.Attributes table,
                                                 org.xml.sax.Attributes stackParent)
                                          throws org.xml.sax.SAXException
        Specified by:
        insertFosterParentedChild in class TreeBuilder<org.xml.sax.Attributes>
        Throws:
        org.xml.sax.SAXException