|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.jackrabbit.extractor.CompositeTextExtractor
public class CompositeTextExtractor
Composite text extractor. This class presents a unified interface
for a set of TextExtractor instances. The composite extractor
supports all the content types supported by the component extractors,
and delegates text extraction calls to the appropriate components.
| Constructor Summary | |
|---|---|
CompositeTextExtractor()
|
|
| Method Summary | |
|---|---|
void |
addTextExtractor(TextExtractor extractor)
Adds a component text extractor. |
java.io.Reader |
extractText(java.io.InputStream stream,
java.lang.String type,
java.lang.String encoding)
Extracts text content using one of the component extractors. |
java.lang.String[] |
getContentTypes()
Returns all the content types supported by the component extractors. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompositeTextExtractor()
| Method Detail |
|---|
public void addTextExtractor(TextExtractor extractor)
extractor - component extractorpublic java.lang.String[] getContentTypes()
getContentTypes in interface TextExtractor
public java.io.Reader extractText(java.io.InputStream stream,
java.lang.String type,
java.lang.String encoding)
throws java.io.IOException
extractText in interface TextExtractorstream - binary streamtype - content typeencoding - optional character encoding
java.io.IOException - if the binary stream can not be read
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||