public class PDEmbeddedFile extends PDStream
| Constructor and Description |
|---|
PDEmbeddedFile(COSStream str)
Constructor.
|
PDEmbeddedFile(InputStream str)
Constructor.
|
PDEmbeddedFile(InputStream input,
COSName filter) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCheckSum()
Get the check sum of the embedded file.
|
Calendar |
getCreationDate()
Get the creation date of the embedded file.
|
String |
getMacCreator()
Get the mac Creator.
|
String |
getMacResFork()
Get the mac ResFork.
|
String |
getMacSubtype()
Get the mac subtype.
|
Calendar |
getModDate()
Get the mod date of the embedded file.
|
int |
getSize()
Get the size of the embedded file.
|
String |
getSubtype()
Get the subtype(mimetype) for the embedded file.
|
void |
setCheckSum(String checksum)
Set the check sum.
|
void |
setCreationDate(Calendar creation)
Set the creation date.
|
void |
setMacCreator(String macCreator)
Set the mac Creator.
|
void |
setMacResFork(String macResFork)
Set the mac ResFork.
|
void |
setMacSubtype(String macSubtype)
Set the mac subtype.
|
void |
setModDate(Calendar mod)
Set the mod date.
|
void |
setSize(long size)
Set the size of the embedded file.
|
void |
setSubtype(String mimeType)
Set the subtype for this embedded file.
|
createInputStream, createOutputStream, createOutputStream, getCOSObject, getDecodedStreamLength, getDecodeParms, getFile, getFileDecodeParams, getFileFilters, getFilters, getLength, getMetadata, setDecodedStreamLength, setDecodeParms, setFile, setFileDecodeParams, setFileFilters, setFilters, setMetadata, toByteArraypublic PDEmbeddedFile(COSStream str)
str - The stream parameter.public PDEmbeddedFile(InputStream str) throws IOException
str - IOExceptionpublic PDEmbeddedFile(InputStream input, COSName filter) throws IOException
IOExceptionpublic void setSubtype(String mimeType)
mimeType - The mimeType for the file.public String getSubtype()
public int getSize()
public void setSize(long size)
size - The size of the embedded file.public Calendar getCreationDate()
IOException - If there is an error while constructing the date.public void setCreationDate(Calendar creation)
creation - The new creation date.public Calendar getModDate()
IOException - If there is an error while constructing the date.public void setModDate(Calendar mod)
mod - The new creation mod.public String getCheckSum()
public void setCheckSum(String checksum)
checksum - The checksum of the file.public String getMacSubtype()
public void setMacSubtype(String macSubtype)
macSubtype - The mac subtype.public String getMacCreator()
public void setMacCreator(String macCreator)
macCreator - The mac Creator.public String getMacResFork()
public void setMacResFork(String macResFork)
macResFork - The mac ResFork.Copyright © 2019 sejda. All rights reserved.