Creates an text representation of a binary property
data
. The returned map contains {@link java.io.Reader} values. Keys to thereader values are
String
s 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.
@param data the data property that contains the binary content.
@param encoding the encoding of the content or
null
if
data
does not use encoding.
@return the extracted text.
@throws RepositoryException if an error occurs while reading from thenode or if the data is malformed.