public class PDFFileSpec extends PDFDictionary
entries, order
Constructor and Description |
---|
PDFFileSpec(String filename)
create a /FileSpec object.
|
PDFFileSpec(String filename,
String unicodeFilename)
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.
|
String |
getFilename()
Gets the filename.
|
String |
getUnicodeFilename()
Gets the unicode filename
|
void |
setDescription(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, supportsObjectStream, toPDF, toPDFString
public PDFFileSpec(String filename)
filename
- the filename represented by this objectpublic String getFilename()
public String getUnicodeFilename()
public void setEmbeddedFile(PDFDictionary embeddedFileDict)
embeddedFileDict
- the dictionary with pointers to embedded file streamspublic void setDescription(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 © 2025 Apache Software Foundation. All rights reserved.