|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sejda.model.input.AbstractPdfSource<URL>
org.sejda.model.input.PdfURLSource
public final class PdfURLSource
AbstractPdfSource from a URL
| Method Summary | ||
|---|---|---|
URL |
getSource()
|
|
static PdfURLSource |
newInstanceNoPassword(URL url,
String name)
Creates a new instance of the pdf source where a password is NOT required to open the source. |
|
static PdfURLSource |
newInstanceWithPassword(URL url,
String name,
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. |
|
String |
toString()
|
|
| Methods inherited from class org.sejda.model.input.AbstractPdfSource |
|---|
getName, getPassword, getPasswordBytes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public URL 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 String toString()
toString in class AbstractPdfSource<URL>
public static PdfURLSource newInstanceNoPassword(URL url,
String name)
url - input URL to a pdf documentname -
public static PdfURLSource newInstanceWithPassword(URL url,
String name,
String password)
url - input URL to a pdf documentname - password -
IllegalArgumentException - if the input stream or the input name are blank.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||