Class XMLStreamReaderReader

  • All Implemented Interfaces:
    org.xml.sax.XMLReader

    public class XMLStreamReaderReader
    extends XMLReaderAdapter
    Convert an XMLStreamReader into SAX events.
    • Constructor Detail

      • XMLStreamReaderReader

        public XMLStreamReaderReader()
      • XMLStreamReaderReader

        public XMLStreamReaderReader​(Unmarshaller xmlUnmarshaller)
    • Method Detail

      • getLocator

        public org.xml.sax.Locator getLocator()
        Description copied from class: XMLReader
        INTERNAL: return the Locator object associated with this reader
        Overrides:
        getLocator in class XMLReader
      • setContentHandler

        public void setContentHandler​(org.xml.sax.ContentHandler handler)
        Specified by:
        setContentHandler in interface org.xml.sax.XMLReader
        Overrides:
        setContentHandler in class XMLReaderAdapter
      • parse

        public void parse​(org.xml.sax.InputSource input)
                   throws org.xml.sax.SAXException
        Specified by:
        parse in interface org.xml.sax.XMLReader
        Overrides:
        parse in class XMLReader
        Throws:
        org.xml.sax.SAXException
      • parse

        public void parse​(javax.xml.stream.XMLStreamReader xmlStreamReader)
                   throws org.xml.sax.SAXException
        Throws:
        org.xml.sax.SAXException
      • parseCharactersEvent

        protected void parseCharactersEvent​(javax.xml.stream.XMLStreamReader xmlStreamReader)
                                     throws org.xml.sax.SAXException
        Subclasses of this class can override this method to provide alternate mechanisms for processing the characters event. One possibility is obtaining a CharSequence and calling the corresponding characters method on the extended content handler.
        Throws:
        org.xml.sax.SAXException