|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.oio.jpdfunit.document.DocumentFactory
public abstract class DocumentFactory
Defines a factory API that enables the application to configure own factories and to parse pdf documents.
Constructor Summary | |
---|---|
DocumentFactory()
|
Method Summary | |
---|---|
abstract Document |
getDocument(InputStream pdfStream)
For working with a Document first you have to get the Document. |
abstract Document |
getDocument(String pdfFile)
For working with a Document first you have to get the Document. |
static DocumentFactory |
newInstance()
This factory method works like the SaxParserFactory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DocumentFactory()
Method Detail |
---|
public abstract Document getDocument(String pdfFile)
pdfFile
- The document i.e.
"etc/testing-pdfs/oio-katalog-mit-logo-mit-farben.pdf"
public abstract Document getDocument(InputStream pdfStream)
pdfStream
- A InputStream which contains the document.
public static DocumentFactory newInstance()
de.oio.document.DocumentFactory
system property
$JAVA_HOME/lib/DocumentFactory.properties
file
META-INF/services/de.oio.document.DocumentFactory
system
resource
DocumentFactoryException
- The exception will be thrown if the instantation fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |