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)
|
getText
public java.lang.String getText(java.lang.String mimeType,
java.io.InputStream is)
throws java.lang.Exception
- Parameters:
mimeType
- indicates the type of datais
- 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
public boolean supportsMimeType(java.lang.String mimeType)
Copyright © -2005 . All Rights Reserved.