|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.jackrabbit.extractor.AbstractTextExtractor
org.apache.jackrabbit.extractor.PlainTextExtractor
public class PlainTextExtractor
Text extractor for plain text.
| Constructor Summary | |
|---|---|
PlainTextExtractor()
Creates a new PlainTextExtractor instance. |
|
| Method Summary | |
|---|---|
java.io.Reader |
extractText(java.io.InputStream stream,
java.lang.String type,
java.lang.String encoding)
Wraps the given input stream to an InputStreamReader using
the given encoding, or the platform default encoding if the encoding
is not given or is unsupported. |
| Methods inherited from class org.apache.jackrabbit.extractor.AbstractTextExtractor |
|---|
getContentTypes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PlainTextExtractor()
PlainTextExtractor instance.
| Method Detail |
|---|
public java.io.Reader extractText(java.io.InputStream stream,
java.lang.String type,
java.lang.String encoding)
throws java.io.IOException
InputStreamReader using
the given encoding, or the platform default encoding if the encoding
is not given or is unsupported. Closes the stream and returns an empty
reader if the given encoding is not supported.
stream - binary streamtype - ignoredencoding - character encoding, optional
java.io.IOException - if the binary stream can not be closed in case
of an encoding issue
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||