public final class PdfURLSource extends AbstractPdfSource<URL>
AbstractPdfSource from a URL| Modifier and Type | Method and Description |
|---|---|
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.
|
<T> T |
open(PdfSourceOpener<T> opener)
Dispatch method to open the source.
|
String |
toString() |
getName, getPassword, getPasswordBytespublic URL getSource()
public <T> T open(PdfSourceOpener<T> opener) throws TaskIOException
PdfSourceT - 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.Copyright © 2015. All Rights Reserved.