|
||||||||||
| 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(java.lang.String[] types,
TextFilter filter)
Creates a text extractor adapter that supports the given content types using the given text filter. |
|
TextFilterExtractor(java.lang.String type,
TextFilter filter)
Creates a text extractor adapter that supports the given content type using the given text filter. |
|
| Method Summary | |
|---|---|
java.io.Reader |
extractText(java.io.InputStream stream,
java.lang.String type,
java.lang.String encoding)
Extracts the text content of the given binary stream by calling the underlying TextFilter instance. |
java.lang.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(java.lang.String[] types,
TextFilter filter)
types - supported content typesfilter - text filter to be adapted
public TextFilterExtractor(java.lang.String type,
TextFilter filter)
type - supported content typefilter - text filter to be adapted| Method Detail |
|---|
public 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
TextFilter instance. A dummy PropertyState
instance is created to comply with the
TextFilter.doFilter(PropertyState, String) method signature.
extractText in interface TextExtractorstream - binary streamtype - content typeencoding - character encoding, or null
java.io.IOException - if the adapted call fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||