public class EmbeddedContentHandler extends ContentHandlerDecorator
startDocument()
and endDocument()
events from reaching the decorated handler.
This is useful when you want to direct the results of parsing multiple
different XML documents into a single target document without worrying
about the startDocument()
and endDocument()
methods
being called more than once.Constructor and Description |
---|
EmbeddedContentHandler(ContentHandler handler)
Created a decorator that prevents the given handler from
receiving
startDocument() and endDocument()
events. |
Modifier and Type | Method and Description |
---|---|
void |
endDocument()
Ignored.
|
void |
startDocument()
Ignored.
|
characters, endElement, endPrefixMapping, handleException, ignorableWhitespace, processingInstruction, setContentHandler, setDocumentLocator, skippedEntity, startElement, startPrefixMapping, toString
error, fatalError, notationDecl, resolveEntity, unparsedEntityDecl, warning
public EmbeddedContentHandler(ContentHandler handler)
startDocument()
and endDocument()
events.handler
- the content handler to be decoratedpublic void startDocument()
startDocument
in interface ContentHandler
startDocument
in class ContentHandlerDecorator
public void endDocument()
endDocument
in interface ContentHandler
endDocument
in class ContentHandlerDecorator
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.