public class AddAttachmentEvent extends ConverterEvent
ConverterListener adds a file to a document as an attachment.| Constructor and Description |
|---|
AddAttachmentEvent(Object source,
ConverterJobInfoEvent jobInfo,
String fileName,
InputStream fileStream,
boolean isStreamInput,
boolean isExistingAttachment,
String attachmentDescription,
Date fileModifiedDate) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttachmentDescription()
Returns text describing the attachment.
|
Date |
getAttachmentFileModifiedDate()
Returns last modified date of the attachment file.
|
String |
getAttachmentFileName()
Returns the name of the file name.
|
InputStream |
getFileStream()
Returns a stream containing the attachment.
|
boolean |
isExistingAttachment()
Specifies whether the attachment already exists in the document or
is being added to document.
|
boolean |
isSkipAttachment()
Returns whether the current attachment should not processed.
|
boolean |
isStreamInput()
Specifies whether the attachment is created using a stream or
file.
|
void |
setAttachmentDescription(String attachmentDescription)
Specifies text describing the attachment.
|
void |
setAttachmentFileModifiedDate(Date attachmentFileModifiedDate)
Specifies last modified date of the attachment file.
|
void |
setAttachmentFileName(String fileName)
Specifies the name of the attachment in the document.
|
void |
setSkipAttachment(boolean skipAttachment)
Specifies whether the current attachment should not processed.
|
getJobInfo, isCancel, setCancelgetSource, toStringpublic AddAttachmentEvent(Object source, ConverterJobInfoEvent jobInfo, String fileName, InputStream fileStream, boolean isStreamInput, boolean isExistingAttachment, String attachmentDescription, Date fileModifiedDate)
public String getAttachmentFileName()
public void setAttachmentFileName(String fileName)
fileName - name of the attachment in the documentpublic InputStream getFileStream()
public boolean isStreamInput()
public boolean isExistingAttachment()
public String getAttachmentDescription()
public void setAttachmentDescription(String attachmentDescription)
attachmentDescription - text describing the attachmentpublic Date getAttachmentFileModifiedDate()
public void setAttachmentFileModifiedDate(Date attachmentFileModifiedDate)
attachmentFileModifiedDate - last modified date of the attachment filepublic boolean isSkipAttachment()
public void setSkipAttachment(boolean skipAttachment)
skipAttachment - true if the attachment is set to be ignored; false if otherwise