public class PDEmbeddedFile extends PDStream
Constructor and Description |
---|
PDEmbeddedFile(COSStream str)
Constructor.
|
PDEmbeddedFile(PDDocument document)
Constructor.
|
PDEmbeddedFile(PDDocument doc,
InputStream str)
Constructor.
|
PDEmbeddedFile(PDDocument doc,
InputStream input,
COSName filter)
Constructor.
|
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(int size)
Set the size of the embedded file.
|
void |
setSubtype(String mimeType)
Set the subtype for this embedded file.
|
addCompression, createInputStream, createInputStream, createOutputStream, createOutputStream, getCOSObject, getDecodedStreamLength, getDecodeParms, getFile, getFileDecodeParams, getFileFilters, getFilters, getLength, getMetadata, getStream, setDecodedStreamLength, setDecodeParms, setFile, setFileDecodeParams, setFileFilters, setFilters, setMetadata, toByteArray
public PDEmbeddedFile(PDDocument document)
document
- public PDEmbeddedFile(COSStream str)
str
- The stream parameter.public PDEmbeddedFile(PDDocument doc, InputStream str) throws IOException
doc
- str
- IOException
public PDEmbeddedFile(PDDocument doc, InputStream input, COSName filter) throws IOException
doc
- input
- filter
- Filter to apply to the stream.IOException
public void setSubtype(String mimeType)
mimeType
- The mimeType for the file.public String getSubtype()
public int getSize()
public void setSize(int size)
size
- The size of the embedded file.public Calendar getCreationDate() throws IOException
IOException
- If there is an error while constructing the date.public void setCreationDate(Calendar creation)
creation
- The new creation date.public Calendar getModDate() throws IOException
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 © 2002–2016 The Apache Software Foundation. All rights reserved.