public class DelegatingFragmentContentHandler extends DelegatingContentHandler
DelegatingContentHandler subclass which swallows the
startDocument() and endDocument() methods. This is useful for handling
XML fragments.| Constructor and Description |
|---|
DelegatingFragmentContentHandler(org.xml.sax.ContentHandler delegate)
Main constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
endDocument() |
void |
startDocument() |
characters, comment, endCDATA, endDTD, endElement, endEntity, endPrefixMapping, error, fatalError, getDelegateContentHandler, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDelegateContentHandler, setDelegateDTDHandler, setDelegateEntityResolver, setDelegateErrorHandler, setDelegateLexicalHandler, setDocumentLocator, skippedEntity, startCDATA, startDTD, startElement, startEntity, startPrefixMapping, unparsedEntityDecl, warningpublic DelegatingFragmentContentHandler(org.xml.sax.ContentHandler delegate)
delegate - the content handler to delegate the SAX events topublic void startDocument()
throws org.xml.sax.SAXException
startDocument in interface org.xml.sax.ContentHandlerstartDocument in class DelegatingContentHandlerorg.xml.sax.SAXExceptionpublic void endDocument()
throws org.xml.sax.SAXException
endDocument in interface org.xml.sax.ContentHandlerendDocument in class DelegatingContentHandlerorg.xml.sax.SAXExceptionCopyright 1999-2022 The Apache Software Foundation. All Rights Reserved.