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.
|
containsKey, get, getChildren, getChildren, keySet, output, put, put, remove, writeDictionary
encode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, outputInline, referencePDF, setDocument, setObjectNumber, setObjectNumber, setObjectNumber, setParent, toPDF, toPDFString
public 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 PDFObject
obj
- object to compare to.Copyright 1999-2017 The Apache Software Foundation. All Rights Reserved.