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(org.xml.sax.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, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startElement, startPrefixMapping, toStringpublic EmbeddedContentHandler(org.xml.sax.ContentHandler handler)
startDocument() and endDocument()
events.handler - the content handler to be decoratedpublic void startDocument()
startDocument in interface org.xml.sax.ContentHandlerstartDocument in class ContentHandlerDecoratorpublic void endDocument()
endDocument in interface org.xml.sax.ContentHandlerendDocument in class ContentHandlerDecoratorCopyright © 2010 - 2023 Adobe. All Rights Reserved