org.icepdf.core.pobjects.actions
Class FileSpecification

java.lang.Object
  extended by org.icepdf.core.pobjects.Dictionary
      extended by org.icepdf.core.pobjects.actions.FileSpecification

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).

Since:
2.6
Author:
ICEsoft Technologies, Inc.

Field Summary
static Name DESC_KEY
           
static Name DOS_KEY
           
static Name EF_KEY
           
static Name F_KEY
           
static Name FS_KEY
           
static Name ID_KEY
           
static Name MAC_KEY
           
static Name RF_KEY
           
static Name UNIX_KEY
           
static Name V_KEY
           
 
Fields inherited from class org.icepdf.core.pobjects.Dictionary
entries, FORM_TYPE_KEY, inited, isDeleted, isNew, LENGTH_KEY, library, SUBTYPE_KEY, TYPE_KEY
 
Constructor Summary
FileSpecification(Library l, java.util.HashMap h)
          Constructs a new specification dictionary.
 
Method Summary
 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 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).
 
Methods inherited from class org.icepdf.core.pobjects.Dictionary
getEntries, getFloat, getInt, getLibrary, getNumber, getObject, getPObjectReference, init, isDeleted, isNew, setDeleted, setNew, setPObjectReference, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FS_KEY

public static final Name FS_KEY

F_KEY

public static final Name F_KEY

DOS_KEY

public static final Name DOS_KEY

MAC_KEY

public static final Name MAC_KEY

UNIX_KEY

public static final Name UNIX_KEY

ID_KEY

public static final Name ID_KEY

V_KEY

public static final Name V_KEY

EF_KEY

public static final Name EF_KEY

RF_KEY

public static final Name RF_KEY

DESC_KEY

public static final Name DESC_KEY
Constructor Detail

FileSpecification

public FileSpecification(Library l,
                         java.util.HashMap h)
Constructs a new specification dictionary.

Parameters:
l - document library.
h - dictionary entries.
Method Detail

getType

public Name getType()
The type of the PDF object that this dictionary describes which is always "Filespec".

Returns:
type of PDF object, "Filespec".

getFileSystemName

public Name getFileSystemName()
Gets the name of the file system to be used to interpret this file specification. This entry is independent of the F, DOS, Mac and Unix entries.

Returns:
the name of the file system to be used to interpret this file.

getFileSpecification

public java.lang.String getFileSpecification()
Gets the file specification string.

Returns:
file specification string.

getDos

public java.lang.String getDos()
Gets the file specification string representing a DOS file name.

Returns:
DOS file name.

getMac

public java.lang.String getMac()
Gets the file specification string representing a Mac file name.

Returns:
Mac file name.

getUnix

public java.lang.String getUnix()
Gets the file specification string representing a Unix file name.

Returns:
Unix file name.

getId

public java.lang.String getId()
Gets an array of two strings constituting a file identifier that is also included in the referenced file.

Returns:
file identifier.

isVolitile

public java.lang.Boolean isVolitile()
Returns a flag indicating whether the file referenced by the file specification is volatile (changes frequently with time).

Returns:
true indicates the file is volitile and should not be cached, otherwise true.

getEmbeddedFileDictionary

public java.util.HashMap getEmbeddedFileDictionary()
Gets a dictionary containing a subset of the keys F, DOS, Mac, and Unix. The value of each key is an embedded file stream.

Returns:
embbed file stream properties.

getRelatedFilesDictionary

public java.util.HashMap getRelatedFilesDictionary()
Gets a dictionary with the same structure as the EF dectionary, which must also b present. EAch key in the RF dictionary must also be present in the EF diciontary. Each value is a related file array identifying files that a re related to the corresponding file in the EF dictionary.

Returns:
related files dictionary.

getDescription

public java.lang.String getDescription()
Gets the descriptive text associated with the file specification.

Returns:
file identifier.