Interface SimpleSAXListener

  • All Known Implementing Classes:
    SimpleSAXAdapter

    public interface SimpleSAXListener
    A listener for events reported by SimpleSAXParser.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void endDocument()
      Notifies the listener that the parser has finished parsing.
      void endTag​(java.lang.String tagName)
      Reports an end tag to the listener.
      void startDocument()
      Notifies the listener that the parser has started parsing.
      void startTag​(java.lang.String tagName, java.util.Map<java.lang.String,​java.lang.String> atts, java.lang.String text)
      Reports a start tag to the listener.
    • Method Detail

      • startDocument

        void startDocument()
                    throws org.xml.sax.SAXException
        Notifies the listener that the parser has started parsing.
        Throws:
        org.xml.sax.SAXException
      • endDocument

        void endDocument()
                  throws org.xml.sax.SAXException
        Notifies the listener that the parser has finished parsing.
        Throws:
        org.xml.sax.SAXException
      • startTag

        void startTag​(java.lang.String tagName,
                      java.util.Map<java.lang.String,​java.lang.String> atts,
                      java.lang.String text)
               throws org.xml.sax.SAXException
        Reports a start tag to the listener. The method call reports the tag's name, the attributes that were found in the start tag and any text that was found after the start tag.
        Parameters:
        tagName - The tag name.
        atts - A map containing key-value-pairs representing the attributes that were found in the start tag.
        text - The text immediately following the start tag, or an empty string if the start tag was followed by a nested start tag or if no text (other than whitespace) was found between start- and end tag.
        Throws:
        org.xml.sax.SAXException
      • endTag

        void endTag​(java.lang.String tagName)
             throws org.xml.sax.SAXException
        Reports an end tag to the listener.
        Parameters:
        tagName - The tag name.
        Throws:
        org.xml.sax.SAXException