public class PDFFileSpec extends PDFDictionary
entries, order| Constructor and Description |
|---|
PDFFileSpec(java.lang.String filename)
create a /FileSpec object.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
contentEquals(PDFObject obj)
Check if the other PDFObject has the same content as the current object.
|
void |
setDescription(java.lang.String description)
Sets a description for the file spec.
|
void |
setEmbeddedFile(PDFDictionary embeddedFileDict)
Associates an dictionary with pointers to embedded file streams with this file spec.
|
get, output, put, put, writeDictionaryencode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, outputInline, referencePDF, setDocument, setObjectNumber, setParent, toPDF, toPDFStringpublic PDFFileSpec(java.lang.String filename)
filename - the filename represented by this objectpublic void setEmbeddedFile(PDFDictionary embeddedFileDict)
embeddedFileDict - the dictionary with pointers to embedded file streamspublic void setDescription(java.lang.String description)
description - the descriptionprotected boolean contentEquals(PDFObject obj)
Note: This function has a contract which is less binding than
Object.equals(Object). Whereas equals would require all values to be
identical, this method is not required to check everything. In the case
of PDFObjects, this means that the overriding function does not have to
check for PDFObject.getObjectID().
contentEquals in class PDFObjectobj - object to compare to.Copyright 1999-2012 The Apache Software Foundation. All Rights Reserved.