|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
TextExtractor
interface
public interface TextFilter
Defines an interface for extracting text out of binary properties according to their mime-type.
TextFilter implementations are asked if they can handle a certain
mime type (canFilter(String) and if one of them returns
true the text representation is created with
doFilter(PropertyState, String)
| Method Summary | |
|---|---|
boolean |
canFilter(java.lang.String mimeType)
Deprecated. Returns true if this TextFilter can index
content of mimeType; false otherwise. |
java.util.Map |
doFilter(PropertyState data,
java.lang.String encoding)
Deprecated. Creates an text representation of a binary property data. |
| Method Detail |
|---|
boolean canFilter(java.lang.String mimeType)
true if this TextFilter can index
content of mimeType; false otherwise.
mimeType - the mime type of the content to index.
TextFilter can index content of
mimeType.
java.util.Map doFilter(PropertyState data,
java.lang.String encoding)
throws javax.jcr.RepositoryException
data.
The returned map contains Reader values. Keys to the
reader values are Strings that serve as field names.
E.g. a TextFilter for a html document may extract multiple fields: one
for the title and one for the whole content.
data - the data property that contains the binary content.encoding - the encoding of the content or null if
data does not use encoding.
javax.jcr.RepositoryException - if an error occurs while reading from the
node or if the data is malformed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||