|
PDF Clown 0.1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pdfclown.objects.PdfObjectWrapper<PdfStream> org.pdfclown.documents.files.EmbeddedFile
@PDF(value=PDF13) public final class EmbeddedFile
Embedded file [PDF:1.6:3.10.3].
Method Summary | |
---|---|
EmbeddedFile |
clone(Document context)
Gets a clone of the object, registered inside the given document context. |
static EmbeddedFile |
get(Document context,
File file)
Creates a new embedded file inside the document. |
static EmbeddedFile |
get(Document context,
IInputStream stream)
Creates a new embedded file inside the document. |
static EmbeddedFile |
get(Document context,
String path)
Creates a new embedded file inside the document. |
Date |
getCreationDate()
Gets the creation date of this file. |
IBuffer |
getData()
Gets the data contained within this file. |
String |
getMimeType()
Gets the MIME media type name of this file [RFC 2046]. |
Date |
getModificationDate()
Gets the modification date of this file. |
int |
getSize()
Gets the size of this file, in bytes. |
void |
setCreationDate(Date value)
|
void |
setMimeType(String value)
|
void |
setModificationDate(Date value)
|
void |
setSize(int value)
|
static EmbeddedFile |
wrap(PdfDirectObject baseObject)
Instantiates an existing embedded file. |
Methods inherited from class org.pdfclown.objects.PdfObjectWrapper |
---|
checkCompatibility, delete, equals, exists, getBaseDataObject, getBaseObject, getBaseObject, getContainer, getDataContainer, getDocument, getFile, getMetadata, retrieveName, retrieveNamedBaseObject, setBaseObject, setMetadata |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static EmbeddedFile get(Document context, String path)
context
- Document context.path
- Path of the file to embed.public static EmbeddedFile get(Document context, File file)
context
- Document context.file
- File to embed.public static EmbeddedFile get(Document context, IInputStream stream)
context
- Document context.stream
- File stream to embed.public static EmbeddedFile wrap(PdfDirectObject baseObject)
baseObject
- Base object.public EmbeddedFile clone(Document context)
PdfObjectWrapper
clone
in class PdfObjectWrapper<PdfStream>
context
- Which document the clone has to be registered in.public Date getCreationDate()
public IBuffer getData()
public String getMimeType()
public Date getModificationDate()
public int getSize()
public void setCreationDate(Date value)
getCreationDate()
public void setMimeType(String value)
getMimeType()
public void setModificationDate(Date value)
getModificationDate()
public void setSize(int value)
getSize()
|
PDF Clown 0.1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |