|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectEDU.oswego.cs.dl.util.concurrent.FutureResult
org.apache.jackrabbit.core.query.lucene.TextExtractorJob
public class TextExtractorJob
TextExtractorJob
implements a future result and is runnable
in a background thread.
Field Summary |
---|
Fields inherited from class EDU.oswego.cs.dl.util.concurrent.FutureResult |
---|
exception_, ready_, value_ |
Constructor Summary | |
---|---|
TextExtractorJob(TextExtractor extractor,
InputStream stream,
String type,
String encoding)
Creates a new TextExtractorJob with the given
extractor on the stream . |
Method Summary | |
---|---|
Reader |
getReader(long timeout)
Returns the reader with the extracted text from the input stream passed to the constructor of this TextExtractorJob . |
void |
run()
Runs the actual text extraction. |
String |
toString()
|
Methods inherited from class EDU.oswego.cs.dl.util.concurrent.FutureResult |
---|
clear, doGet, get, getException, isReady, peek, set, setException, setter, timedGet |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TextExtractorJob(TextExtractor extractor, InputStream stream, String type, String encoding)
TextExtractorJob
with the given
extractor
on the stream
.
extractor
- the text extractorstream
- the stream of the binary property.type
- the mime-type of the binary content.encoding
- the encoding of the binary content. May be
null
.Method Detail |
---|
public Reader getReader(long timeout)
TextExtractorJob
. The caller of
this method is responsible for closing the returned reader. Returns
null
if a timeout
occurs while waiting for the
text extractor to get the reader.
null
if
a timeout or an exception occured extracting the text.public String toString()
toString
in class Object
public void run()
run
in interface Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |