|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pdfbox.pdmodel.common.PDStream
org.apache.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)
Constructor. |
|
PDEmbeddedFile(PDDocument doc,
java.io.InputStream str)
Constructor. |
|
PDEmbeddedFile(PDDocument doc,
java.io.InputStream str,
boolean filtered)
Constructor. |
Method Summary | |
---|---|
java.lang.String |
getCheckSum()
Get the check sum of the embedded file. |
java.util.Calendar |
getCreationDate()
Get the creation date of the embedded file. |
java.lang.String |
getMacCreator()
Get the mac Creator. |
java.lang.String |
getMacResFork()
Get the mac ResFork. |
java.lang.String |
getMacSubtype()
Get the mac subtype. |
java.util.Calendar |
getModDate()
Get the mod date of the embedded file. |
int |
getSize()
Get the size of the embedded file. |
java.lang.String |
getSubtype()
Get the subtype(mimetype) for the embedded file. |
void |
setCheckSum(java.lang.String checksum)
Set the check sum. |
void |
setCreationDate(java.util.Calendar creation)
Set the creation date. |
void |
setMacCreator(java.lang.String macCreator)
Set the mac Creator. |
void |
setMacResFork(java.lang.String macResFork)
Set the mac ResFork. |
void |
setMacSubtype(java.lang.String macSubtype)
Set the mac subtype. |
void |
setModDate(java.util.Calendar mod)
Set the mod date. |
void |
setSize(int size)
Set the size of the embedded file. |
void |
setSubtype(java.lang.String mimeType)
Set the subtype for this embedded file. |
Methods inherited from class org.apache.pdfbox.pdmodel.common.PDStream |
---|
addCompression, createFromCOS, createInputStream, createOutputStream, getByteArray, getCOSObject, getDecodedStreamLength, getDecodeParms, getFile, getFileDecodeParams, getFileFilters, getFilters, getInputStreamAsString, getLength, getMetadata, getPartiallyFilteredStream, getStream, setDecodedStreamLength, setDecodeParms, 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)
document
- public PDEmbeddedFile(COSStream str)
str
- The stream parameter.public PDEmbeddedFile(PDDocument doc, java.io.InputStream str) throws java.io.IOException
doc
- str
-
java.io.IOException
public PDEmbeddedFile(PDDocument doc, java.io.InputStream str, boolean filtered) throws java.io.IOException
doc
- str
- filtered
-
java.io.IOException
Method Detail |
---|
public void setSubtype(java.lang.String mimeType)
mimeType
- The mimeType for the file.public java.lang.String getSubtype()
public int getSize()
public void setSize(int size)
size
- The size of the embedded file.public java.util.Calendar getCreationDate() throws java.io.IOException
java.io.IOException
- If there is an error while constructing the date.public void setCreationDate(java.util.Calendar creation)
creation
- The new creation date.public java.util.Calendar getModDate() throws java.io.IOException
java.io.IOException
- If there is an error while constructing the date.public void setModDate(java.util.Calendar mod)
mod
- The new creation mod.public java.lang.String getCheckSum()
public void setCheckSum(java.lang.String checksum)
checksum
- The checksum of the file.public java.lang.String getMacSubtype()
public void setMacSubtype(java.lang.String macSubtype)
macSubtype
- The mac subtype.public java.lang.String getMacCreator()
public void setMacCreator(java.lang.String macCreator)
macCreator
- The mac Creator.public java.lang.String getMacResFork()
public void setMacResFork(java.lang.String macResFork)
macResFork
- The mac ResFork.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |