Interface DocumentHandler

  • All Known Implementing Classes:
    DocumentHandlerToSAXAdapter

    @Deprecated
    public interface DocumentHandler
    Deprecated.
    This is replaced by the Apache Sling Html parsing.
    Invoked by the HTMLParser when elements are scanned.
    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      void characters​(char[] ch, int off, int len)
      Deprecated.
      Receive notification of unparsed character data.
      void onEnd()
      Deprecated.
      Receive notification of parsing end.
      void onEndElement​(java.lang.String name, char[] ch, int off, int len)
      Deprecated.
      Receive notification of the end of an element.
      void onStart()
      Deprecated.
      Receive notification of parsing start.
      void onStartElement​(java.lang.String name, AttributeList attList, char[] ch, int off, int len, boolean endSlash)
      Deprecated.
      Receive notification of the beginning of an element.
    • Method Detail

      • characters

        void characters​(char[] ch,
                        int off,
                        int len)
                 throws java.io.IOException
        Deprecated.
        Receive notification of unparsed character data.
        Parameters:
        ch - character data
        off - offset where character data starts
        len - length of character data
        Throws:
        java.io.IOException - IOException
      • onStartElement

        void onStartElement​(java.lang.String name,
                            AttributeList attList,
                            char[] ch,
                            int off,
                            int len,
                            boolean endSlash)
                     throws java.io.IOException
        Deprecated.
        Receive notification of the beginning of an element.
        Parameters:
        name - tag name
        attList - attribute list
        ch - string equivalent to this notification
        off - offset where character data starts
        len - length of character data
        endSlash - flag indicating whether the element is closed with an ending slash (xhtml-compliant)
        Throws:
        java.io.IOException - IOException
      • onEndElement

        void onEndElement​(java.lang.String name,
                          char[] ch,
                          int off,
                          int len)
                   throws java.io.IOException
        Deprecated.
        Receive notification of the end of an element.
        Parameters:
        name - tag name
        ch - string equivalent to this notification
        off - offset where character data starts
        len - length of character data
        Throws:
        java.io.IOException - IOException
      • onStart

        void onStart()
              throws java.io.IOException
        Deprecated.
        Receive notification of parsing start.
        Throws:
        java.io.IOException - IOException
      • onEnd

        void onEnd()
            throws java.io.IOException
        Deprecated.
        Receive notification of parsing end.
        Throws:
        java.io.IOException - IOException