public class FileSpecification
extends java.lang.Object
The reference can be either absolute, as in a complete path name, or relative to the current place in a directory structure.
| Constructor and Description |
|---|
FileSpecification(Document doc,
java.lang.String path)
Creates a new file specification object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete() |
java.lang.String |
getPath()
The path to the file referenced.
|
PDFObject |
getPDFObject()
Retrieve the PDFObject representation of this object.
|
java.lang.String |
toString() |
public FileSpecification(Document doc, java.lang.String path)
doc - The document in which the file specification is created.path - The string corresponding to the path of the file to reference. It may be relative or absolute.public void delete()
public java.lang.String getPath()
public java.lang.String toString()
toString in class java.lang.Objectpublic PDFObject getPDFObject()