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.
|
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() |
getPrefix
protected 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 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 ExtensionAttachment
getCategory
in class PDFExtensionAttachment
public java.lang.String toString()
toString
in class java.lang.Object
protected java.lang.String getElement()
public void toSAX(org.xml.sax.ContentHandler handler) throws org.xml.sax.SAXException
org.xml.sax.SAXException
Copyright 1999-2017 The Apache Software Foundation. All Rights Reserved.