Class DefaultDigester

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String _elementName
      the element name
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultDigester​(java.lang.String name)
      Constructor
    • Field Detail

      • _elementName

        private final java.lang.String _elementName
        the element name
    • Constructor Detail

      • DefaultDigester

        public DefaultDigester​(java.lang.String name)
        Constructor
        Parameters:
        name - the name
    • Method Detail

      • startDigest

        public void startDigest​(SaxDigesterHandler handler,
                                org.xml.sax.Attributes attrs)
                         throws org.xml.sax.SAXException
        Start an element with the given attributes
        Specified by:
        startDigest in interface ElementDigester
        Parameters:
        handler - the handler
        attrs - the attributes
        Throws:
        org.xml.sax.SAXException - if there's handling exception
      • endDigest

        public void endDigest​(SaxDigesterHandler handler)
                       throws org.xml.sax.SAXException
        End the element
        Specified by:
        endDigest in interface ElementDigester
        Parameters:
        handler - the handler
        Throws:
        org.xml.sax.SAXException - if there's handling exception
      • characters

        public void characters​(SaxDigesterHandler handler,
                               char[] chars,
                               int offset,
                               int length)
                        throws org.xml.sax.SAXException
        Handle the characters
        Specified by:
        characters in interface ElementDigester
        Parameters:
        handler - the handler
        chars - the characters
        offset - the offset
        length - the length
        Throws:
        org.xml.sax.SAXException - if there's parse problem
      • getElementName

        public final java.lang.String getElementName()
        Get the element name
        Specified by:
        getElementName in interface ElementDigester
        Returns:
        the element name