| Constructor and Description |
|---|
PDFFileAttachment(String filePath)
Constructs an attachment with specified file.
|
PDFFileAttachment(String filePath,
boolean compressAttachmentStream) |
PDFFileAttachment(String attachmentName,
byte[] byteArray)
Constructs an attachment with specified byte array.
|
PDFFileAttachment(String attachmentName,
byte[] byteArray,
boolean compressAttachmentStream) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
String |
getAttachmentDescription() |
Date |
getFileModifiedDate() |
String |
getFileName() |
byte[] |
getStream()
Returns a byte array containing the attachment file.
|
void |
setAttachmentDescription(String attachmentDescription) |
void |
setFileModifiedDate(Date fileModifiedDate) |
void |
setFileName(String fileName) |
void |
write(PDF doc) |
public PDFFileAttachment(String filePath) throws IOException, PDFException
filePath - pathname of the fileIOException - if an I/O error occurs.PDFException - if an illegal argument is supplied.public PDFFileAttachment(String filePath, boolean compressAttachmentStream) throws IOException, PDFException
IOExceptionPDFExceptionpublic PDFFileAttachment(String attachmentName, byte[] byteArray) throws IOException, PDFException
attachmentName - name that needs to be used for the attachment in the
documentbyteArray - byte array containing the attachment fileIOException - if an I/O error occurs.PDFException - if an illegal argument is supplied.public PDFFileAttachment(String attachmentName, byte[] byteArray, boolean compressAttachmentStream) throws IOException, PDFException
IOExceptionPDFExceptionpublic byte[] getStream()
public void write(PDF doc) throws IOException
IOExceptionpublic String getFileName()
public void setFileName(String fileName)
public Date getFileModifiedDate()
public void setFileModifiedDate(Date fileModifiedDate)
public String getAttachmentDescription()
public void setAttachmentDescription(String attachmentDescription)