public class DelegatingFragmentContentHandler extends DelegatingContentHandler
DelegatingContentHandler
subclass which swallows the
startDocument()
and endDocument()
methods. This is useful for handling
XML fragments.Constructor | Description |
---|---|
DelegatingFragmentContentHandler(org.xml.sax.ContentHandler delegate) |
Main constructor
|
Modifier and Type | Method | 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 class DelegatingContentHandler
org.xml.sax.SAXException
public void endDocument() throws org.xml.sax.SAXException
endDocument
in class DelegatingContentHandler
org.xml.sax.SAXException
Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.