|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.core.query.lucene.TextFilterExtractor
public class TextFilterExtractor
Adapter class for achieving backwards compatibility with classes
implementing the deprectated TextFilter
interface. This class
implements the TextExtractor
interface through calls to an
underlying TextFilter
instance.
Constructor Summary | |
---|---|
TextFilterExtractor(String[] types,
TextFilter filter)
Creates a text extractor adapter that supports the given content types using the given text filter. |
|
TextFilterExtractor(String type,
TextFilter filter)
Creates a text extractor adapter that supports the given content type using the given text filter. |
Method Summary | |
---|---|
Reader |
extractText(InputStream stream,
String type,
String encoding)
Extracts the text content of the given binary stream by calling the underlying TextFilter instance. |
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 TextFilterExtractor(String[] types, TextFilter filter)
types
- supported content typesfilter
- text filter to be adaptedpublic TextFilterExtractor(String type, TextFilter filter)
type
- supported content typefilter
- text filter to be adaptedMethod Detail |
---|
public String[] getContentTypes()
getContentTypes
in interface TextExtractor
public Reader extractText(InputStream stream, String type, String encoding) throws IOException
TextFilter
instance. A dummy PropertyState
instance is created to comply with the
TextFilter.doFilter(PropertyState, String)
method signature.
extractText
in interface TextExtractor
stream
- binary streamtype
- content typeencoding
- character encoding, or null
IOException
- if the adapted call fails
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |