| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.harvard.hul.ois.jhove.module.pdf.FileSpecification
public class FileSpecification
A class which encapsulates a file specification in PDF. A file specification may be given as either a string or a dictionary. The specification is converted to a string according to the following rules: If a PDF string object is the file specifier, that string is used, without attempting to convert file separators to the local file system. If a PDF dictionary is used, one of the following is used, in decreasing order of preference:
| Constructor Summary | |
|---|---|
| FileSpecification(PdfObject obj)Constructor. | |
| Method Summary | |
|---|---|
|  PdfObject | getSourceObject()Returns the PdfObject from which the file specification was created. | 
|  java.lang.String | getSpecString()Returns the file specification as a string. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public FileSpecification(PdfObject obj)
                  throws PdfException
obj - A PdfDictionary with the file specification under the
               key "F", "Unix", "DOS", or "Mac"; or
               a PdfSimpleObject whose string value is the
               file specification.  If obj is
               a dictionary and more than one key is specified,
               then the first of the keys F, Unix, DOS, and Mac
               to be found is used.
PdfException| Method Detail | 
|---|
public java.lang.String getSpecString()
public PdfObject getSourceObject()
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||