|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.sconman.handlers.NullHandler net.sourceforge.sconman.handlers.PDFHandler
public class PDFHandler
This filter takes a PDF input stream and generates its equivalent text input stream. It uses the PDFBox library.
Constructor Summary | |
---|---|
PDFHandler()
Constructor for PDFHandler. |
Method Summary | |
---|---|
java.io.Reader |
getTextReader(Content content)
Implement this method to return a reader that provides the text associated to the content |
void |
writeText(java.io.InputStream is,
java.io.Writer out)
Writes all the text associated to the incoming input stream |
Methods inherited from class net.sourceforge.sconman.handlers.NullHandler |
---|
getFieldsAsString, getInfo, hasThumbnail, writeAttributes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PDFHandler()
Method Detail |
---|
public java.io.Reader getTextReader(Content content) throws java.io.IOException
IContentTypeHandler
getTextReader
in interface IContentTypeHandler
getTextReader
in class NullHandler
content
- The content
java.io.IOException
- If there's an IO problempublic void writeText(java.io.InputStream is, java.io.Writer out) throws java.io.IOException
IContentTypeHandler
writeText
in interface IContentTypeHandler
writeText
in class NullHandler
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |