Class PDSimpleFileSpecification
- java.lang.Object
-
- org.apache.pdfbox.pdmodel.common.filespecification.PDFileSpecification
-
- org.apache.pdfbox.pdmodel.common.filespecification.PDSimpleFileSpecification
-
- All Implemented Interfaces:
COSObjectable
public class PDSimpleFileSpecification extends PDFileSpecification
A file specification that is just a string.
-
-
Constructor Summary
Constructors Constructor Description PDSimpleFileSpecification()
Constructor.PDSimpleFileSpecification(COSString fileName)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description COSBase
getCOSObject()
Convert this standard java object to a COS object.java.lang.String
getFile()
This will get the file name.void
setFile(java.lang.String fileName)
This will set the file name.-
Methods inherited from class org.apache.pdfbox.pdmodel.common.filespecification.PDFileSpecification
createFS
-
-
-
-
Field Detail
-
file
private COSString file
-
-
Constructor Detail
-
PDSimpleFileSpecification
public PDSimpleFileSpecification()
Constructor.
-
PDSimpleFileSpecification
public PDSimpleFileSpecification(COSString fileName)
Constructor.- Parameters:
fileName
- The file that this spec represents.
-
-
Method Detail
-
getFile
public java.lang.String getFile()
This will get the file name.- Specified by:
getFile
in classPDFileSpecification
- Returns:
- The file name.
-
setFile
public void setFile(java.lang.String fileName)
This will set the file name.- Specified by:
setFile
in classPDFileSpecification
- Parameters:
fileName
- The name of the file.
-
getCOSObject
public COSBase getCOSObject()
Convert this standard java object to a COS object.- Returns:
- The cos object that matches this Java object.
-
-