public final class PdfStreamSource extends AbstractPdfSource<InputStream>
AbstractPdfSource
from a InputStream
Modifier and Type | Method and Description |
---|---|
InputStream |
getSource() |
static PdfStreamSource |
newInstanceNoPassword(InputStream stream,
String name)
Creates a new instance of the pdf source where a password is NOT required to open the source.
|
static PdfStreamSource |
newInstanceWithPassword(InputStream stream,
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.
|
getName, getPassword, getPasswordBytes, setPassword, toString
public InputStream 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 PdfStreamSource newInstanceNoPassword(InputStream stream, String name)
stream
- input pdf streamname
- public static PdfStreamSource newInstanceWithPassword(InputStream stream, String name, String password)
stream
- input pdf streamname
- password
- IllegalArgumentException
- if the input stream or the input name are blank.Copyright © 2019 sejda. All rights reserved.