Class PDFEmbeddedFileAttachment
java.lang.Object
org.apache.fop.render.pdf.extensions.PDFExtensionAttachment
org.apache.fop.render.pdf.extensions.PDFEmbeddedFileAttachment
- All Implemented Interfaces:
ExtensionAttachment, org.apache.xmlgraphics.util.XMLizable
This is the pass-through value object for the PDF extension.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringa description of the file to be embeddedprivate static final Stringname of file to be embeddedprivate static final Stringsource of file to be embedded (URI)private Stringdescription attribute (optional)protected static final Stringelement nameprivate Stringfilename attributeprivate static final longprivate Stringsource name attributeprivate Stringunicode filename attributeFields inherited from class PDFExtensionAttachment
CATEGORY, PREFIX -
Constructor Summary
ConstructorsConstructorDescriptionNo-argument contructor.PDFEmbeddedFileAttachment(String filename, String src, String desc) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionThis method returns a category URI that allows a processor (layout manager or renderer) to determine if it supports this object.getDesc()Returns the file description.protected StringReturns the file name.getSrc()Returns the source URI of the file.Returns the unicode file name.voidSets the description of the file.voidsetFilename(String name) Sets the file name.voidSets the source URI of the file.voidtoSAX(ContentHandler handler) toString()Methods inherited from class PDFExtensionAttachment
getPrefix
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
ELEMENT
-
ATT_NAME
-
ATT_SRC
-
ATT_DESC
-
filename
filename attribute -
unicodeFilename
unicode filename attribute -
desc
description attribute (optional) -
src
source name attribute
-
-
Constructor Details
-
PDFEmbeddedFileAttachment
public PDFEmbeddedFileAttachment()No-argument contructor. -
PDFEmbeddedFileAttachment
-
-
Method Details
-
getFilename
-
getUnicodeFilename
-
setFilename
-
getDesc
-
setDesc
Sets the description of the file.- Parameters:
desc- the description to set
-
getSrc
-
setSrc
-
getCategory
This method returns a category URI that allows a processor (layout manager or renderer) to determine if it supports this object.- Specified by:
getCategoryin interfaceExtensionAttachment- Overrides:
getCategoryin classPDFExtensionAttachment- Returns:
- the category URI
-
toString
-
getElement
- Returns:
- the element name
-
toSAX
- Throws:
SAXException
-