Class DelegatingFragmentContentHandler

  • All Implemented Interfaces:
    org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler, org.xml.sax.ext.LexicalHandler

    public class DelegatingFragmentContentHandler
    extends DelegatingContentHandler
    This class is a DelegatingContentHandler subclass which swallows the startDocument() and endDocument() methods. This is useful for handling XML fragments.
    • Constructor Detail

      • DelegatingFragmentContentHandler

        public DelegatingFragmentContentHandler​(org.xml.sax.ContentHandler delegate)
        Main constructor
        Parameters:
        delegate - the content handler to delegate the SAX events to
    • Method Detail

      • startDocument

        public void startDocument()
                           throws org.xml.sax.SAXException
        Specified by:
        startDocument in interface org.xml.sax.ContentHandler
        Overrides:
        startDocument in class DelegatingContentHandler
        Throws:
        org.xml.sax.SAXException
      • endDocument

        public void endDocument()
                         throws org.xml.sax.SAXException
        Specified by:
        endDocument in interface org.xml.sax.ContentHandler
        Overrides:
        endDocument in class DelegatingContentHandler
        Throws:
        org.xml.sax.SAXException