|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.jackrabbit.extractor.EmptyTextExtractor
public class EmptyTextExtractor
Dummy text extractor that always returns and empty reader for all documents. Useful as a dummy handler for unsupported content types.
| Constructor Summary | |
|---|---|
EmptyTextExtractor(String type)
Creates a dummy text extractor for the given content type. |
|
EmptyTextExtractor(String[] types)
Creates a dummy text extractor for the given content types. |
|
| Method Summary | |
|---|---|
Reader |
extractText(InputStream stream,
String type,
String encoding)
Closes the given stream and returns an empty reader. |
String[] |
getContentTypes()
Returns the supported content types. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EmptyTextExtractor(String[] types)
types - supported content typespublic EmptyTextExtractor(String type)
type - supported content type| Method Detail |
|---|
public String[] getContentTypes()
getContentTypes in interface TextExtractor
public Reader extractText(InputStream stream,
String type,
String encoding)
throws IOException
extractText in interface TextExtractorstream - binary stream that simply gets closedtype - ignoredencoding - ignored
IOException - if the binary stream can not be closed
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||