org.apache.tika.sax.TeeContentHandler Java Examples
The following examples show how to use
org.apache.tika.sax.TeeContentHandler.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CachingTesseractOCRParser.java From extract with MIT License | 5 votes |
private void parseToCache(final TikaInputStream tis, final ContentHandler handler, final Metadata metadata, final ParseContext context, final TesseractOCRConfig config, final boolean inline, final Writer writer) throws SAXException, IOException, TikaException { final ContentHandler tee = new TeeContentHandler(handler, new WriteOutContentHandler(writer)); if (inline) { super.parseInline(tis, new XHTMLContentHandler(tee, metadata), context, config); } else { super.parse(tis, tee, metadata, context); } }