de.oio.jpdfunit.document.util
Class PdfDataSource
java.lang.Object
de.oio.jpdfunit.document.util.PdfDataSource
- All Implemented Interfaces:
- DocumentDataSource
public final class PdfDataSource
- extends Object
- implements DocumentDataSource
The pdf data source is for the choice of the datasource. Therefore
there are two elemental sources available on the on hand a String with the path
to the pdf document including the document i.e. "etc/testing-pdfs/DocumentInformationTest.pdf"
and on the other side a stream which contains the pdf document.
- Author:
- bbratkus
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PdfDataSource
public PdfDataSource(String pdf)
- Parameters:
pdf
- The pdf document i.e. "etc/testing-pdfs/DocumentInformationTest.pdf"
PdfDataSource
public PdfDataSource(InputStream pdfStream)
- Parameters:
pdfStream
- The pdf file as stream
getFile
public String getFile()
- Specified by:
getFile
in interface DocumentDataSource
- Returns:
- Returns the file.
getStream
public InputStream getStream()
- Specified by:
getStream
in interface DocumentDataSource
- Returns:
- Returns the pdfStream.
getDatasource
public int getDatasource()
- Specified by:
getDatasource
in interface DocumentDataSource
- Returns:
- Returns the datasource type.
Copyright © 2011. All Rights Reserved.