|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sejda.model.input.AbstractPdfSource<File>
org.sejda.model.input.PdfFileSource
public final class PdfFileSource
AbstractPdfSource from a File
| Method Summary | ||
|---|---|---|
File |
getSource()
|
|
static PdfFileSource |
newInstanceNoPassword(File file)
Creates a new instance of the pdf source where a password is NOT required to open the source. |
|
static PdfFileSource |
newInstanceWithPassword(File file,
String password)
Creates a new instance of the pdf source where a password is required to open the source. |
|
|
open(PdfSourceOpener<T> opener)
Dispatch method to open the source. |
|
| Methods inherited from class org.sejda.model.input.AbstractPdfSource |
|---|
getName, getPassword, getPasswordBytes, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public File getSource()
public <T> T open(PdfSourceOpener<T> opener)
throws TaskIOException
PdfSource
T - generic type as result of the open action.
TaskIOException - in case of error opening the source.public static PdfFileSource newInstanceNoPassword(File file)
file - input pdf file
public static PdfFileSource newInstanceWithPassword(File file,
String password)
file - input pdf filepassword -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||