public class PDComplexFileSpecification extends PDFileSpecification
Constructor and Description |
---|
PDComplexFileSpecification()
Default Constructor.
|
PDComplexFileSpecification(COSDictionary dict)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
COSDictionary |
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.
|
boolean |
isVolatile()
Get if the file is volatile.
|
void |
setEmbeddedFile(PDEmbeddedFile file)
Set the embedded file for this spec.
|
void |
setEmbeddedFileDos(PDEmbeddedFile file)
Deprecated.
This method is obsolescent and should not be used by conforming writers.
|
void |
setEmbeddedFileMac(PDEmbeddedFile file)
Deprecated.
This method is obsolescent and should not be used by conforming writers.
|
void |
setEmbeddedFileUnicode(PDEmbeddedFile file)
Set the embedded Unicode file for this spec.
|
void |
setEmbeddedFileUnix(PDEmbeddedFile file)
Deprecated.
This method is obsolescent and should not be used by conforming writers.
|
void |
setFile(String file)
This will set the file name.
|
void |
setFileDescription(String description)
Set the file description.
|
void |
setFileDos(String file)
Deprecated.
This method is obsolescent and should not be used by conforming writers.
|
void |
setFileMac(String file)
Deprecated.
This method is obsolescent and should not be used by conforming writers.
|
void |
setFileUnicode(String file)
This will set the unicode file name.
|
void |
setFileUnix(String file)
Deprecated.
This method is obsolescent and should not be used by conforming writers.
|
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 COSDictionary getCOSObject()
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 getFileUnicode()
public void setFileUnicode(String file)
setFile(String)
or the attachment will not be visible on
some viewers.file
- The name of the file.public String getFile()
getFile
in class PDFileSpecification
public void setFile(String file)
setFileUnicode(String)
for cross-platform and
cross-language compatibility.setFile
in class PDFileSpecification
file
- The name of the file.public String getFileDos()
@Deprecated public void setFileDos(String file)
file
- The name of the file.public String getFileMac()
@Deprecated public void setFileMac(String file)
file
- The name of the file.public String getFileUnix()
@Deprecated 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)
setEmbeddedFileUnicode(PDEmbeddedFile)
for cross-platform and cross-language compatibility.file
- The file to be embedded.public PDEmbeddedFile getEmbeddedFileDos()
@Deprecated public void setEmbeddedFileDos(PDEmbeddedFile file)
file
- The dos file to be embedded.public PDEmbeddedFile getEmbeddedFileMac()
@Deprecated public void setEmbeddedFileMac(PDEmbeddedFile file)
file
- The Mac file to be embedded.public PDEmbeddedFile getEmbeddedFileUnix()
@Deprecated public void setEmbeddedFileUnix(PDEmbeddedFile file)
file
- The Unix file to be embedded.public PDEmbeddedFile getEmbeddedFileUnicode()
public void setEmbeddedFileUnicode(PDEmbeddedFile file)
setEmbeddedFile(PDEmbeddedFile)
or the attachment will not be visible on some viewers.file
- The Unicode file to be embedded.public void setFileDescription(String description)
description
- The file descriptionpublic String getFileDescription()
Copyright © 2002–2025 The Apache Software Foundation. All rights reserved.