org.apache.jackrabbit.core.query.lucene
Class TextPlainTextFilter
java.lang.Object
org.apache.jackrabbit.core.query.lucene.TextPlainTextFilter
- All Implemented Interfaces:
- TextFilter
- public class TextPlainTextFilter
- extends Object
- implements TextFilter
Implements a TextFilter that handles binary properties of mime-type
text/plain.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextPlainTextFilter
public TextPlainTextFilter()
canFilter
public boolean canFilter(String mimeType)
- Returns
true for text/plain; false
in all other cases.
- Specified by:
canFilter in interface TextFilter
- Parameters:
mimeType - the mime-type.
- Returns:
true for text/plain; false
in all other cases.
doFilter
public Map doFilter(PropertyState data,
String encoding)
throws RepositoryException
- Returns a map with a single entry for field
FieldNames.FULLTEXT.
- Specified by:
doFilter in interface TextFilter
- Parameters:
data - the data property.encoding - the encoding
- Returns:
- a map with a single Reader value for field
FieldNames.FULLTEXT.
- Throws:
RepositoryException - if encoding is not supported or data is a
multi-value property.
Copyright © 2004-2006 The Apache Software Foundation. All Rights Reserved.