|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.query.lucene.TextExtractorFilter
public class TextExtractorFilter
Utility base class for migrating functionality from existing implementations
of the deprecated TextFilter interface to the new
TextExtractor interface. Once the functionality of an existing
TextFilter has been copied to a new TextExtractor, the original class can
be replaced with the following template to keep backwards compatibility
while avoiding the burden of maintaining duplicate code:
public class SomeTextFilter extends TextExtractorFilter {
public SomeTextFilter() {
super(new SomeTextExtractor());
}
}
| Constructor Summary | |
|---|---|
TextExtractorFilter(TextExtractor extractor)
Creates a text filter adapter for the given text extractor. |
|
| Method Summary | |
|---|---|
boolean |
canFilter(java.lang.String mimeType)
Returns true if the adapted text extractor supports the given content type. |
java.util.Map |
doFilter(PropertyState data,
java.lang.String encoding)
Extracts text content of the given binary property using the adapted text extractor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextExtractorFilter(TextExtractor extractor)
extractor - adapted text extractor| Method Detail |
|---|
public boolean canFilter(java.lang.String mimeType)
canFilter in interface TextFiltermimeType - content type
true if the content type is supported,
false otherwise
public java.util.Map doFilter(PropertyState data,
java.lang.String encoding)
throws javax.jcr.RepositoryException
doFilter in interface TextFilterdata - binary propertyencoding - character encoding, or null
FieldNames.FULLTEXT entry
javax.jcr.RepositoryException - if the binary property can not be read
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||