public class FileSpecification extends Dictionary
The File Specification diction provides more flexibility then the string form. allowing different files to be specified for different file systems or platforms, or for file system othere than the standard ones (DOS/Windows, Mac OS, and Unix).
| Modifier and Type | Field and Description |
|---|---|
static Name |
CI_KEY
A collection item dictionary, which shall be used to create the user
interface for portable collections (see 7.11.6, "Collection Items").
|
static Name |
DESC_KEY
Descriptive text associated with the file specification.
|
static Name |
DOS_KEY
A file specification string (see 7.11.2, "File Specification Strings")
representing a DOS file name.
|
static Name |
EF_KEY
(Required if RF is present; PDF 1.3; amended to include the UF key in PDF
1.7) A dictionary containing a subset of the keys F, UF, DOS, Mac, and Unix,
corresponding to the entries by those names in the file specification dictionary.
|
static Name |
F_KEY
(Required if the DOS, Mac, and Unix entries are all absent; amended with
the UF entry for PDF 1.7) A file specification string of the form
described in 7.11.2, "File Specification Strings," or (if the file system is URL)
a uniform resource locator, as described in 7.11.5, "URL Specifications."
The UF entry should be used in addition to the F entry.
|
static Name |
FS_KEY
The name of the file system that shall be used to interpret this file
specification.
|
static Name |
ID_KEY
An array of two byte strings constituting a file identifier that should
be included in the referenced file.
|
static Name |
MAC_KEY
A file specification string (see 7.11.2, "File Specification
Strings") representing a Mac OS file name.
|
static Name |
RF_KEY
A dictionary with the same structure as the EF dictionary, which shall be
present.
|
static Name |
UF_KEY
A Unicode text string that provides file specification of the form
described in 7.11.2, "File Specification Strings." This is a text string
encoded using PDFDocEncoding or UTF-16BE with a leading byte-order marker
(as defined in 7.9.2.2, "Text String Type").
|
static Name |
UNIX_KEY
A file specification string (see 7.11.2, "File Specification Strings")
representing a UNIX file name.
|
static Name |
V_KEY
flag indicating whether the file referenced by the file specification is
volatile (changes frequently with time).
|
entries, FORM_TYPE_KEY, inited, isDeleted, isNew, LENGTH_KEY, library, SUBTYPE_KEY, TYPE_KEY| Constructor and Description |
|---|
FileSpecification(Library l,
java.util.HashMap h)
Constructs a new specification dictionary.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.HashMap |
getCollectionItemDictionary()
GA collection item dictionary, which shall be used to create the user
interface for portable collections (see 7.11.6, "Collection Items").
|
java.lang.String |
getDescription()
Gets the descriptive text associated with the file specification.
|
java.lang.String |
getDos()
Gets the file specification string representing a DOS file name.
|
java.util.HashMap |
getEmbeddedFileDictionary()
Gets a dictionary containing a subset of the keys F, DOS, Mac, and
Unix.
|
java.lang.String |
getFileSpecification()
Gets the file specification string.
|
Name |
getFileSystemName()
Gets the name of the file system to be used to interpret this file
specification.
|
java.lang.String |
getId()
Gets an array of two strings constituting a file identifier that is also
included in the referenced file.
|
java.lang.String |
getMac()
Gets the file specification string representing a Mac file name.
|
java.util.HashMap |
getRelatedFilesDictionary()
Gets a dictionary with the same structure as the EF dectionary, which
must also b present.
|
Name |
getType()
The type of the PDF object that this dictionary describes which is always
"Filespec".
|
java.lang.String |
getUnicodeFileSpecification()
Gets the unicode file specification string.
|
java.lang.String |
getUnix()
Gets the file specification string representing a Unix file name.
|
java.lang.Boolean |
isVolitile()
Returns a flag indicating whether the file referenced by the file
specification is volatile (changes frequently with time).
|
getEntries, getFloat, getInt, getLibrary, getNumber, getObject, getPObjectReference, init, isDeleted, isNew, setDeleted, setNew, setPObjectReference, toStringpublic static final Name FS_KEY
public static final Name F_KEY
public static final Name UF_KEY
public static final Name DOS_KEY
public static final Name MAC_KEY
public static final Name UNIX_KEY
public static final Name ID_KEY
public static final Name V_KEY
public static final Name EF_KEY
public static final Name RF_KEY
public static final Name DESC_KEY
public static final Name CI_KEY
public FileSpecification(Library l, java.util.HashMap h)
l - document library.h - dictionary entries.public Name getType()
public Name getFileSystemName()
public java.lang.String getFileSpecification()
public java.lang.String getUnicodeFileSpecification()
public java.lang.String getDos()
public java.lang.String getMac()
public java.lang.String getUnix()
public java.lang.String getId()
public java.lang.Boolean isVolitile()
public java.util.HashMap getEmbeddedFileDictionary()
public java.util.HashMap getRelatedFilesDictionary()
public java.lang.String getDescription()
public java.util.HashMap getCollectionItemDictionary()