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(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(ContentHandler delegate)
delegate - the content handler to delegate the SAX events topublic void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in class DelegatingContentHandlerSAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class DelegatingContentHandlerSAXExceptionCopyright © 2023 Apache Software Foundation. All rights reserved.