org.outerj.daisy.textextraction
Interface TextExtractor


public interface TextExtractor

Extracts text from arbitrary data.


Method Summary
 java.lang.String getText(java.lang.String mimeType, java.io.InputStream is)
           
 boolean supportsMimeType(java.lang.String mimeType)
           
 

Method Detail

getText

java.lang.String getText(java.lang.String mimeType,
                         java.io.InputStream is)
                         throws java.lang.Exception
Parameters:
mimeType - indicates the type of data
is - the input stream to be read, will be closed and buffered for you
Returns:
the extracted text, or null if the mimeType is not supported.
Throws:
java.lang.Exception

supportsMimeType

boolean supportsMimeType(java.lang.String mimeType)


Copyright © -2012 . All Rights Reserved.