Class StringReadHandler

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.StringBuffer buffer
      A string buffer.
      private java.lang.String result
      The string under construction.
    • Constructor Summary

      Constructors 
      Constructor Description
      StringReadHandler()
      Creates a new handler.
    • Field Detail

      • buffer

        private java.lang.StringBuffer buffer
        A string buffer.
      • result

        private java.lang.String result
        The string under construction.
    • Constructor Detail

      • StringReadHandler

        public StringReadHandler()
        Creates a new handler.
    • Method Detail

      • startParsing

        protected void startParsing​(org.xml.sax.Attributes attrs)
                             throws org.xml.sax.SAXException
        Starts parsing.
        Overrides:
        startParsing in class AbstractXmlReadHandler
        Parameters:
        attrs - the attributes.
        Throws:
        org.xml.sax.SAXException - if there is a parsing error.
      • characters

        public void characters​(char[] ch,
                               int start,
                               int length)
                        throws org.xml.sax.SAXException
        This method is called to process the character data between element tags.
        Specified by:
        characters in interface XmlReadHandler
        Overrides:
        characters in class AbstractXmlReadHandler
        Parameters:
        ch - the character buffer.
        start - the start index.
        length - the length.
        Throws:
        org.xml.sax.SAXException - if there is a parsing error.
      • getResult

        public java.lang.String getResult()
        Returns the result.
        Returns:
        The result.
      • getObject

        public java.lang.Object getObject()
        Returns the object for this element.
        Returns:
        the object.