intarsys PDF library API

de.intarsys.pdf.pd
Class PDFileSpecification

java.lang.Object
  extended by de.intarsys.pdf.cos.COSBasedObject
      extended by de.intarsys.pdf.pd.PDObject
          extended by de.intarsys.pdf.pd.PDFileSpecification
All Implemented Interfaces:
ICOSObjectListener, IAttributeSupport
Direct Known Subclasses:
PDFileSpecificationURL

public class PDFileSpecification
extends PDObject

Repesents the PDF's FileSpecification-type


Nested Class Summary
static class PDFileSpecification.MetaClass
          The meta class implementation
 
Field Summary
static COSName CN_F_DOS
          File specification string for DOS files
static COSName CN_F_Mac
          File specification string for Macintosh files
static COSName CN_F_Unix
          File specification string for UNIX files
static COSName CN_FS_URL
          File URL
static COSName CN_Type_Alt_Filespec
           
static COSName CN_Type_Filespec
           
static COSName DK_EF
          Embedded file dict
static COSName DK_F
          File
static COSName DK_FS
          Name of the file system.
static COSName DK_RF
          Embedded file array dict.
static PDFileSpecification.MetaClass META
          The meta class instance
 
Fields inherited from class de.intarsys.pdf.pd.PDObject
DK_Subtype, DK_Type
 
Method Summary
 PDEmbeddedFile getEmbeddedFile(COSName flavor)
          The embedded file of a specific flavor (one of F, DOS, Mac, Unix),
 COSDictionary getEmbeddedFiles()
          The dictionary mapping the F/DOC/Mac/Unix entries of the file spec to embedded file dictionaries.
 String getFile()
           
 String getFileSpecificationString(COSName flavor)
           
 COSName getFileSystem()
           
 void setEmbeddedFile(COSName flavor, PDEmbeddedFile embeddedFile)
           
 void setFile(String file)
           
 void setFileSpecificationString(COSName flavor, String spec)
           
 void setFileSystem(COSName bs)
           
 
Methods inherited from class de.intarsys.pdf.pd.PDObject
cosGetFieldDescendant, cosGetFieldInheritable, cosGetFieldInherited, cosGetSubtype, cosGetType, cosRemoveFieldInheritable, cosSetFieldInheritable, cosSetSubtype, cosSetType, getDoc, getGenericChildren, getGenericParent, setGenericParent, toString
 
Methods inherited from class de.intarsys.pdf.cos.COSBasedObject
changed, cosGetArray, cosGetDict, cosGetDoc, cosGetField, cosGetObject, cosGetStream, cosHasField, cosRemoveField, cosSetField, getAttribute, getFieldBoolean, getFieldDate, getFieldFixed, getFieldFixedArray, getFieldInt, getFieldMLString, getFieldString, invalidateCaches, removeAttribute, setAttribute, setFieldBoolean, setFieldFixed, setFieldInt, setFieldMLString, setFieldName, setFieldObject, setFieldString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CN_Type_Filespec

public static final COSName CN_Type_Filespec

CN_Type_Alt_Filespec

public static final COSName CN_Type_Alt_Filespec

META

public static final PDFileSpecification.MetaClass META
The meta class instance


DK_FS

public static final COSName DK_FS
Name of the file system.


DK_F

public static final COSName DK_F
File


CN_F_DOS

public static final COSName CN_F_DOS
File specification string for DOS files


CN_F_Mac

public static final COSName CN_F_Mac
File specification string for Macintosh files


CN_F_Unix

public static final COSName CN_F_Unix
File specification string for UNIX files


CN_FS_URL

public static final COSName CN_FS_URL
File URL


DK_EF

public static final COSName DK_EF
Embedded file dict


DK_RF

public static final COSName DK_RF
Embedded file array dict.

Method Detail

setFileSystem

public void setFileSystem(COSName bs)

getFileSystem

public COSName getFileSystem()

getFile

public String getFile()

getEmbeddedFile

public PDEmbeddedFile getEmbeddedFile(COSName flavor)
The embedded file of a specific flavor (one of F, DOS, Mac, Unix),

Parameters:
flavor - One of F, DOC, Mac, Unix
Returns:
the embedded file of this flavor, if any, or null.

setEmbeddedFile

public void setEmbeddedFile(COSName flavor,
                            PDEmbeddedFile embeddedFile)

getFileSpecificationString

public String getFileSpecificationString(COSName flavor)

setFileSpecificationString

public void setFileSpecificationString(COSName flavor,
                                       String spec)

getEmbeddedFiles

public COSDictionary getEmbeddedFiles()
The dictionary mapping the F/DOC/Mac/Unix entries of the file spec to embedded file dictionaries.


setFile

public void setFile(String file)

intarsys PDF library API

Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.