public class PDFFileSpec extends PDFDictionary
entries, order| Constructor and Description |
|---|
PDFFileSpec(java.lang.String filename)
create a /FileSpec object.
|
PDFFileSpec(java.lang.String filename,
java.lang.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.
|
java.lang.String |
getFilename()
Gets the filename.
|
java.lang.String |
getUnicodeFilename()
Gets the unicode filename
|
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, writeDictionaryencode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, outputInline, referencePDF, setDocument, setObjectNumber, setObjectNumber, setObjectNumber, setParent, toPDF, toPDFStringpublic PDFFileSpec(java.lang.String filename)
filename - the filename represented by this objectpublic PDFFileSpec(java.lang.String filename,
java.lang.String unicodeFilename)
filename - the filename represented by this objectunicodeFilename - the unicode filename represented by this objectpublic java.lang.String getFilename()
public java.lang.String getUnicodeFilename()
public 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-2022 The Apache Software Foundation. All Rights Reserved.