public class BasicTikaFSConsumer extends AbstractFSConsumer
This catches all exceptions and errors and then logs them. This will re-throw errors.
ELAPSED_MILLIS, IO_IS, IO_OS, logger, OOM, PARSE_ERR, PARSE_EX, TIMED_OUT| Constructor and Description |
|---|
BasicTikaFSConsumer(ArrayBlockingQueue<FileResource> queue,
ParserFactory parserFactory,
ContentHandlerFactory contentHandlerFactory,
OutputStreamFactory fsOSFactory,
TikaConfig config) |
| Modifier and Type | Method and Description |
|---|---|
String |
getOutputEncoding() |
boolean |
processFileResource(FileResource fileResource)
Main piece of code that needs to be implemented.
|
void |
setOutputEncoding(String outputEncoding) |
getInputStream, getOutputStreamcall, checkForTimedOutMillis, close, flushAndClose, getCurrentFile, getNumHandledExceptions, getNumResourcesConsumed, getXMLifiedLogMsg, getXMLifiedLogMsg, incrementHandledExceptions, isStillActive, parse, pleaseShutdownpublic BasicTikaFSConsumer(ArrayBlockingQueue<FileResource> queue, ParserFactory parserFactory, ContentHandlerFactory contentHandlerFactory, OutputStreamFactory fsOSFactory, TikaConfig config)
public boolean processFileResource(FileResource fileResource)
FileResourceConsumerFileResourceConsumer.incrementHandledExceptions() appropriately in
your implementation of this method.
processFileResource in class FileResourceConsumerfileResource - resource to processpublic String getOutputEncoding()
public void setOutputEncoding(String outputEncoding)
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.