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 |
getEmbeddedFileUnicode()
Get the embedded unicode file.
|
PDEmbeddedFile |
getEmbeddedFileUnix()
Get the embedded Unix file.
|
String |
getFile()
This will get the file name.
|
String |
getFileDescription()
This will get the description.
|
String |
getFileDos()
This will get the name representing a Dos file.
|
String |
getFileMac()
This will get the name representing a Mac file.
|
String |
getFilename()
Preferred method for getting the filename.
|
String |
getFileUnicode()
This will get the unicode file name.
|
String |
getFileUnix()
This will get the name representing a Unix file.
|
String |
getUnicodeFile()
Deprecated.
use
getFileUnicode() instead |
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 |
setEmbeddedFileUnicode(PDEmbeddedFile file)
Set the embedded Unicode file for this spec.
|
void |
setEmbeddedFileUnix(PDEmbeddedFile file)
Set the embedded Unix file for this spec.
|
void |
setFile(String file)
This will set the file name.
|
void |
setFileDescription(String description)
Set the file description.
|
void |
setFileDos(String file)
This will set name representing a dos file.
|
void |
setFileMac(String file)
This will set name representing a Mac file.
|
void |
setFileUnicode(String file)
This will set unicode file name.
|
void |
setFileUnix(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 String getFilename()
Preferred method for getting the filename. It will determinate the recommended file name.
First of all we try to get the unicode filename if it exist. If it doesn't exist we take a look at the DOS, MAC UNIX filenames. If no one exist the required F entry will be returned.
public String getUnicodeFile()
getFileUnicode()
insteadpublic String getFileUnicode()
public void setFileUnicode(String file)
file
- The name of the file.public String getFile()
getFile
in class PDFileSpecification
public void setFile(String file)
setFile
in class PDFileSpecification
file
- The name of the file.public String getFileDos()
public void setFileDos(String file)
file
- The name of the file.public String getFileMac()
public void setFileMac(String file)
file
- The name of the file.public String getFileUnix()
public void setFileUnix(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.public PDEmbeddedFile getEmbeddedFileUnicode()
public void setEmbeddedFileUnicode(PDEmbeddedFile file)
file
- The Unicode file to be embedded.public void setFileDescription(String description)
description
- The file descriptionpublic String getFileDescription()
Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.