public interface SingleDocumentExtractor extends DocumentExtractor
DocumentExtractor
that only extracts a single
document from a file.Modifier and Type | Method and Description |
---|---|
Document |
extractDocument(java.io.File file)
Attempts to extract a document from the given file.
|
Document |
extractDocument(java.net.URI uri)
Attempts to extract a document from the given file.
|
Document |
extractDocument(java.net.URLConnection connection)
Attempts to extract a document from the given file.
|
canExtract, canExtract, canExtract, extractAll, extractAll, extractAll
Document extractDocument(java.io.File file) throws DocumentExtractionException, java.io.IOException
file
- The file to extract.DocumentExtractionException
- If there is an error extracting data from the file.java.io.IOException
- If there is an IO error.Document extractDocument(java.net.URI uri) throws DocumentExtractionException, java.io.IOException
uri
- The URI of the file to extract.DocumentExtractionException
- If there is an error extracting data from the file.java.io.IOException
- If there is an IO error.Document extractDocument(java.net.URLConnection connection) throws DocumentExtractionException, java.io.IOException
connection
- The connection to the file to extract.DocumentExtractionException
- If there is an error extracting data from the file.java.io.IOException
- If there is an IO error.