| com.pspdfkit.document.files.EmbeddedFile |
Represents file embedded in FileAnnotation or PdfDocument.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract FileAnnotation |
getAnnotation()
Returns
FileAnnotation to which this file is attached to. | ||||||||||
| abstract byte[] |
getFileData()
Reads whole file and returns its data.
| ||||||||||
| abstract String |
getFileDescription()
Returns file description.
| ||||||||||
| abstract String |
getFileName()
Returns name of the file.
| ||||||||||
| abstract long |
getFileSize()
Returns file size.
| ||||||||||
| abstract String |
getId()
Returns identifier of this embedded file.
| ||||||||||
| abstract Date |
getModificationDate()
Returns file modification date.
| ||||||||||
| abstract void |
writeToStream(OutputStream outputStream)
Writes the complete contents of this file to the specified output stream.
| ||||||||||
| abstract Completable |
writeToStreamAsync(OutputStream outputStream)
Writes the complete contents of this file to the specified output stream, asynchronously.
| ||||||||||
Returns FileAnnotation to which this file is attached to.
null if not available.
Reads whole file and returns its data. This could take a while and should be executed on background thread.
| IOException | When operation fails. |
|---|
Returns file description.
null if not set.
Returns file size.
FILE_SIZE_UNKNOWN if size could not be determined.
Returns identifier of this embedded file.
Returns file modification date.
null if not set.
Writes the complete contents of this file to the specified output stream.
| outputStream | Output stream to which to write file's data. |
|---|
| IOException | When operation fails. |
|---|
Writes the complete contents of this file to the specified output stream, asynchronously.
| outputStream | Output stream to which to write file's data. |
|---|