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, warning
public 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.ContentHandler
startDocument
in class DelegatingContentHandler
org.xml.sax.SAXException
public void endDocument() throws org.xml.sax.SAXException
endDocument
in interface org.xml.sax.ContentHandler
endDocument
in class DelegatingContentHandler
org.xml.sax.SAXException
Copyright 1999-2017 The Apache Software Foundation. All Rights Reserved.