Class PDSimpleFileSpecification
- java.lang.Object
-
- com.tom_roush.pdfbox.pdmodel.common.filespecification.PDFileSpecification
-
- com.tom_roush.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 COSBasegetCOSObject()Convert this standard java object to a COS object.StringgetFile()This will get the file name.voidsetFile(String fileName)This will set the file name.-
Methods inherited from class com.tom_roush.pdfbox.pdmodel.common.filespecification.PDFileSpecification
createFS
-
-
-
-
Constructor Detail
-
PDSimpleFileSpecification
public PDSimpleFileSpecification()
Constructor.
-
PDSimpleFileSpecification
public PDSimpleFileSpecification(COSString fileName)
Constructor.- Parameters:
fileName- The file that this spec represents.
-
-
Method Detail
-
getFile
public String getFile()
This will get the file name.- Specified by:
getFilein classPDFileSpecification- Returns:
- The file name.
-
setFile
public void setFile(String fileName)
This will set the file name.- Specified by:
setFilein 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.
-
-