public class ArrayPdfSource extends PdfSource
PdfSource
which is solely based on in-memory data.KEY_NAME, KEY_PASSWORD, KEY_PATH
Constructor and Description |
---|
ArrayPdfSource(java.lang.String name,
long lastModified,
byte[] content)
Creates the
PdfSource for in-memory data. |
Modifier and Type | Method and Description |
---|---|
long |
getLastModified()
Returns the time of the last modification to the document.
|
byte[] |
getRawContent()
Returns the binary content of this
PdfSource |
long |
getSize()
Returns the size of the raw data in bytes
|
getLanguage, getMetaProperties, getName, getPassword, getPath, setLanguage, setPageLimit, setPassword
public ArrayPdfSource(java.lang.String name, long lastModified, byte[] content)
PdfSource
for in-memory data.name
- the name of the PDF, commonly the file name the PDF was read from, must not be null
lastModified
- the last modified timestamp of the PDF data; this time stamp is only relevant for the result
export, it's not used in the comparisoncontent
- the actual raw content of the PDF, must not be nulljava.lang.IllegalArgumentException
- in case the name or the content is null
public long getLastModified()
getLastModified
in class PdfSource
public long getSize()
Copyright © 2010-2022 by i-net software GmbH