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, warning
public DelegatingFragmentContentHandler(ContentHandler delegate)
delegate
- the content handler to delegate the SAX events topublic void startDocument() throws SAXException
startDocument
in interface ContentHandler
startDocument
in class DelegatingContentHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
endDocument
in class DelegatingContentHandler
SAXException
Copyright © 2025 Apache Software Foundation. All rights reserved.