public class PdfDocReader extends java.lang.Object implements FormatReader<DocData>
| Constructor and Description |
|---|
PdfDocReader()
Create a new, uninitialized PdfDocReader.
|
PdfDocReader(java.io.File file)
Create a new PdfDocReader that will read the specified PDF file or
directory containing PDF files.
|
PdfDocReader(java.lang.String filePath)
Create a new PdfDocReader that will read the specified PDF file or
directory containing PDF files.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRead()
Return whether this reader is initialized and can read data
|
void |
close()
Close the reader.
|
java.lang.String |
getFilters()
Get the filters for this reader.
|
java.lang.String |
getSource()
Get the source for this reader
|
boolean |
hasMoreData()
Determine whether the reader has more data
|
java.util.List<DocData> |
readData()
Read the PDF file, or directory of PDF files, to extract the content.
|
void |
setFilters(java.lang.String filters)
Set filters for this reader.
|
void |
setSource(java.lang.String source)
Set the source for this reader.
|
public PdfDocReader()
setSource() method.public PdfDocReader(java.io.File file)
file - the PDF file to read, or the directory containing PDF files.public PdfDocReader(java.lang.String filePath)
filePath - the path to the PDF file to read, or the directory
containing PDF files.public boolean canRead()
canRead in interface FormatReader<DocData>public void close()
close in interface FormatReader<DocData>public java.lang.String getFilters()
getFilters in interface FormatReader<DocData>public java.lang.String getSource()
getSource in interface FormatReader<DocData>public boolean hasMoreData()
hasMoreData in interface FormatReader<DocData>public java.util.List<DocData> readData()
readData in interface FormatReader<DocData>public void setFilters(java.lang.String filters)
setFilters in interface FormatReader<DocData>filters - the filters for this readerpublic void setSource(java.lang.String source)
setSource in interface FormatReader<DocData>source - the PDF source file or directory