|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xml.sax.helpers.DefaultHandler org.apache.tika.sax.ContentHandlerDecorator org.apache.tika.sax.EmbeddedContentHandler
public class EmbeddedContentHandler
Content handler decorator that prevents the 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 Summary | |
---|---|
EmbeddedContentHandler(org.xml.sax.ContentHandler handler)
Created a decorator that prevents the given handler from receiving startDocument() and endDocument()
events. |
Method Summary | |
---|---|
void |
endDocument()
Ignored. |
void |
startDocument()
Ignored. |
Methods inherited from class org.apache.tika.sax.ContentHandlerDecorator |
---|
characters, endElement, endPrefixMapping, handleException, ignorableWhitespace, processingInstruction, setContentHandler, setDocumentLocator, skippedEntity, startElement, startPrefixMapping, toString |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
error, fatalError, notationDecl, resolveEntity, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EmbeddedContentHandler(org.xml.sax.ContentHandler handler)
startDocument()
and endDocument()
events.
handler
- the content handler to be decoratedMethod Detail |
---|
public void startDocument()
startDocument
in interface org.xml.sax.ContentHandler
startDocument
in class ContentHandlerDecorator
public void endDocument()
endDocument
in interface org.xml.sax.ContentHandler
endDocument
in class ContentHandlerDecorator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |