Class StringValueHandler

    • Constructor Detail

      • StringValueHandler

        public StringValueHandler()
    • Method Detail

      • characters

        public void characters​(char[] ch,
                               int off,
                               int len)
                        throws org.xml.sax.SAXException
        Specified by:
        characters in interface org.xml.sax.ContentHandler
        Overrides:
        characters in class EmptySerializer
        Throws:
        org.xml.sax.SAXException
        See Also:
        ContentHandler.characters(char[], int, int)
      • getValue

        public java.lang.String getValue()
      • endElement

        public void endElement​(java.lang.String qname)
                        throws org.xml.sax.SAXException
        Description copied from interface: ExtendedContentHandler
        This method is used to notify that an element has ended. Unlike the standard SAX method
         endElement(namespaceURI,localName,qName)
         
        only the last parameter is passed. If needed the serializer can derive the localName from the qualified name and derive the namespaceURI from its implementation.
        Specified by:
        endElement in interface ExtendedContentHandler
        Overrides:
        endElement in class EmptySerializer
        Parameters:
        qname - the fully qualified element name.
        Throws:
        org.xml.sax.SAXException
        See Also:
        ExtendedContentHandler.endElement(java.lang.String)
      • getValueOfPI

        public java.lang.String getValueOfPI()
        The value of a PI must not contain the substring "?>". Should that substring be present, replace it by "? >".