public class PDFEmbeddedFileAttachment extends PDFExtensionAttachment
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
ELEMENT
element name
|
CATEGORY, PREFIX| Constructor and Description |
|---|
PDFEmbeddedFileAttachment()
No-argument contructor.
|
PDFEmbeddedFileAttachment(java.lang.String filename,
java.lang.String src,
java.lang.String desc)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCategory()
This method returns a category URI that allows a processor (layout manager or renderer)
to determine if it supports this object.
|
java.lang.String |
getDesc()
Returns the file description.
|
protected java.lang.String |
getElement() |
java.lang.String |
getFilename()
Returns the file name.
|
java.lang.String |
getSrc()
Returns the source URI of the file.
|
java.lang.String |
getUnicodeFilename()
Returns the unicode file name.
|
void |
setDesc(java.lang.String desc)
Sets the description of the file.
|
void |
setFilename(java.lang.String name)
Sets the file name.
|
void |
setSrc(java.lang.String src)
Sets the source URI of the file.
|
void |
toSAX(org.xml.sax.ContentHandler handler) |
java.lang.String |
toString() |
getPrefixprotected static final java.lang.String ELEMENT
public PDFEmbeddedFileAttachment()
public PDFEmbeddedFileAttachment(java.lang.String filename,
java.lang.String src,
java.lang.String desc)
filename - the name of the filesrc - the location of the filedesc - the description of the filepublic java.lang.String getFilename()
public java.lang.String getUnicodeFilename()
public void setFilename(java.lang.String name)
name - The file name to set.public java.lang.String getDesc()
public void setDesc(java.lang.String desc)
desc - the description to setpublic java.lang.String getSrc()
public void setSrc(java.lang.String src)
src - the source URIpublic java.lang.String getCategory()
getCategory in interface ExtensionAttachmentgetCategory in class PDFExtensionAttachmentpublic java.lang.String toString()
toString in class java.lang.Objectprotected java.lang.String getElement()
public void toSAX(org.xml.sax.ContentHandler handler)
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionCopyright 1999-2022 The Apache Software Foundation. All Rights Reserved.