org.apache.pdfbox.pdmodel.common.filespecification
public class PDComplexFileSpecification extends PDFileSpecification
Constructor and Description |
---|
PDComplexFileSpecification()
Default Constructor.
|
PDComplexFileSpecification(COSDictionary dict)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
COSDictionary |
getCOSDictionary()
Convert this standard java object to a COS object.
|
COSBase |
getCOSObject()
Convert this standard java object to a COS object.
|
PDEmbeddedFile |
getEmbeddedFile()
Get the embedded file.
|
PDEmbeddedFile |
getEmbeddedFileDos()
Get the embedded dos file.
|
PDEmbeddedFile |
getEmbeddedFileMac()
Get the embedded Mac file.
|
PDEmbeddedFile |
getEmbeddedFileUnix()
Get the embedded Unix file.
|
java.lang.String |
getFile()
This will get the file name.
|
java.lang.String |
getFileDos()
This will get the name representing a Dos file.
|
java.lang.String |
getFileMac()
This will get the name representing a Mac file.
|
java.lang.String |
getFileUnix()
This will get the name representing a Unix file.
|
boolean |
isVolatile()
Get if the file is volatile.
|
void |
setEmbeddedFile(PDEmbeddedFile file)
Set the embedded file for this spec.
|
void |
setEmbeddedFileDos(PDEmbeddedFile file)
Set the embedded dos file for this spec.
|
void |
setEmbeddedFileMac(PDEmbeddedFile file)
Set the embedded Mac file for this spec.
|
void |
setEmbeddedFileUnix(PDEmbeddedFile file)
Set the embedded Unix file for this spec.
|
void |
setFile(java.lang.String file)
This will set the file name.
|
void |
setFileDos(java.lang.String file)
This will set name representing a dos file.
|
void |
setFileMac(java.lang.String file)
This will set name representing a Mac file.
|
void |
setFileUnix(java.lang.String file)
This will set name representing a Unix file.
|
void |
setVolatile(boolean fileIsVolatile)
Tell if the underlying file is volatile and should not be cached by the
reader application.
|
createFS
public PDComplexFileSpecification()
public PDComplexFileSpecification(COSDictionary dict)
dict
- The dictionary that fulfils this file specification.public COSBase getCOSObject()
public COSDictionary getCOSDictionary()
public java.lang.String getFile()
getFile
in class PDFileSpecification
public void setFile(java.lang.String file)
setFile
in class PDFileSpecification
file
- The name of the file.public java.lang.String getFileDos()
public void setFileDos(java.lang.String file)
file
- The name of the file.public java.lang.String getFileMac()
public void setFileMac(java.lang.String file)
file
- The name of the file.public java.lang.String getFileUnix()
public void setFileUnix(java.lang.String file)
file
- The name of the file.public void setVolatile(boolean fileIsVolatile)
fileIsVolatile
- The new value for the volatility of the file.public boolean isVolatile()
public PDEmbeddedFile getEmbeddedFile()
public void setEmbeddedFile(PDEmbeddedFile file)
file
- The file to be embedded.public PDEmbeddedFile getEmbeddedFileDos()
public void setEmbeddedFileDos(PDEmbeddedFile file)
file
- The dos file to be embedded.public PDEmbeddedFile getEmbeddedFileMac()
public void setEmbeddedFileMac(PDEmbeddedFile file)
file
- The Mac file to be embedded.public PDEmbeddedFile getEmbeddedFileUnix()
public void setEmbeddedFileUnix(PDEmbeddedFile file)
file
- The Unix file to be embedded.