public final class PdfStreamSource extends AbstractPdfSource<InputStream>
AbstractPdfSource from a InputStream| Modifier and Type | Method and Description |
|---|---|
InputStream |
getSource() |
org.sejda.io.SeekableSource |
initializeSeekableSource() |
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, toStringgetEncryptionAtRestPolicy, getSeekableSource, setEncryptionAtRestPolicyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetEncryptionAtRestPolicy, getSeekableSource, setEncryptionAtRestPolicypublic InputStream 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 org.sejda.io.SeekableSource initializeSeekableSource()
throws IOException
IOExceptionpublic 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 © 2021 sejda. All rights reserved.