org.pdfbox.pdmodel.common.filespecification
Class PDEmbeddedFile
- COSObjectable
public class PDEmbeddedFile
This represents an embedded file in a file specification.
addCompression , createFromCOS , createInputStream , createOutputStream , getByteArray , getCOSObject , getDecodeParams , getFile , getFileDecodeParams , getFileFilters , getFilters , getInputStreamAsString , getLength , getMetadata , getPartiallyFilteredStream , getStream , setDecodeParams , setFile , setFileDecodeParams , setFileFilters , setFilters , setMetadata |
PDEmbeddedFile
public PDEmbeddedFile(COSStream str)
Constructor.
str
- The stream parameter.
PDEmbeddedFile
public PDEmbeddedFile(PDDocument document)
Constructor.
PDEmbeddedFile
public PDEmbeddedFile(PDDocument doc,
InputStream str)
throws IOException
Constructor.
PDEmbeddedFile
public PDEmbeddedFile(PDDocument doc,
InputStream str,
boolean filtered)
throws IOException
Constructor.
getCheckSum
public String getCheckSum()
Get the check sum of the embedded file.
- The check sum of the file.
getCreationDate
public Calendar getCreationDate()
throws IOException
Get the creation date of the embedded file.
getMacCreator
public String getMacCreator()
Get the mac Creator.
getMacResFork
public String getMacResFork()
Get the mac ResFork.
getMacSubtype
public String getMacSubtype()
Get the mac subtype.
getModDate
public Calendar getModDate()
throws IOException
Get the mod date of the embedded file.
getSize
public int getSize()
Get the size of the embedded file.
- The size of the embedded file.
getSubtype
public String getSubtype()
Get the subtype(mimetype) for the embedded file.
- The type of embedded file.
setCheckSum
public void setCheckSum(String checksum)
Set the check sum.
checksum
- The checksum of the file.
setCreationDate
public void setCreationDate(Calendar creation)
Set the creation date.
creation
- The new creation date.
setMacCreator
public void setMacCreator(String macCreator)
Set the mac Creator.
macCreator
- The mac Creator.
setMacResFork
public void setMacResFork(String macResFork)
Set the mac ResFork.
macResFork
- The mac ResFork.
setMacSubtype
public void setMacSubtype(String macSubtype)
Set the mac subtype.
macSubtype
- The mac subtype.
setModDate
public void setModDate(Calendar mod)
Set the mod date.
mod
- The new creation mod.
setSize
public void setSize(int size)
Set the size of the embedded file.
size
- The size of the embedded file.
setSubtype
public void setSubtype(String mimeType)
Set the subtype for this embedded file. This should be a mime type value. Optional.
mimeType
- The mimeType for the file.