Package com.github.euler.tika
Class FragmentBatch
- java.lang.Object
-
- com.github.euler.tika.FragmentBatch
-
-
Constructor Summary
Constructors Constructor Description FragmentBatch(org.apache.tika.parser.Parser parser, StreamFactory sf, int fragmentSize, int fragmentOverlap, BatchSink sink)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinish()voidflush(Flush msg, BatchListener listener)voidhandleResponse(SinkResponse response, BatchListener listener)protected voidparse(URI uri, FragmentHandler fragmentHandler)voidprocess(JobTaskToProcess msg, BatchListener listener)
-
-
-
Constructor Detail
-
FragmentBatch
public FragmentBatch(org.apache.tika.parser.Parser parser, StreamFactory sf, int fragmentSize, int fragmentOverlap, BatchSink sink)
-
-
Method Detail
-
process
public void process(JobTaskToProcess msg, BatchListener listener)
-
flush
public void flush(Flush msg, BatchListener listener)
-
handleResponse
public void handleResponse(SinkResponse response, BatchListener listener)
-
parse
protected void parse(URI uri, FragmentHandler fragmentHandler) throws IOException, SAXException, org.apache.tika.exception.TikaException
- Throws:
IOExceptionSAXExceptionorg.apache.tika.exception.TikaException
-
-