|
||||||||||
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. |
Reader |
extractText(InputStream stream,
String type,
String encoding)
Extracts text content using one of the component extractors. |
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 String[] getContentTypes()
getContentTypes
in interface TextExtractor
public Reader extractText(InputStream stream, String type, String encoding) throws IOException
extractText
in interface TextExtractor
stream
- binary streamtype
- content typeencoding
- optional character encoding
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 |