|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pdfbox.pdmodel.common.PDStream
org.pdfbox.pdmodel.common.filespecification.PDEmbeddedFile
public class PDEmbeddedFile
This represents an embedded file in a file specification.
Constructor Summary | |
---|---|
PDEmbeddedFile(COSStream str)
Constructor. |
|
PDEmbeddedFile(PDDocument document)
|
|
PDEmbeddedFile(PDDocument doc,
InputStream str)
|
|
PDEmbeddedFile(PDDocument doc,
InputStream str,
boolean filtered)
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.pdfbox.pdmodel.common.PDStream |
---|
addCompression, createFromCOS, createInputStream, createOutputStream, getByteArray, getCOSObject, getDecodeParams, getFile, getFileDecodeParams, getFileFilters, getFilters, getInputStreamAsString, getLength, getMetadata, getPartiallyFilteredStream, getStream, setDecodeParams, setFile, setFileDecodeParams, setFileFilters, setFilters, setMetadata |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PDEmbeddedFile(PDDocument document)
PDStream.PDStream(PDDocument)
public PDEmbeddedFile(COSStream str)
str
- The stream parameter.public PDEmbeddedFile(PDDocument doc, InputStream str) throws IOException
IOException
PDStream.PDStream(PDDocument, InputStream )
public PDEmbeddedFile(PDDocument doc, InputStream str, boolean filtered) throws IOException
IOException
PDStream.PDStream(PDDocument, InputStream, boolean)
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |