public class Attachment extends java.lang.Object implements IAttachment
Constructor and Description |
---|
Attachment(java.lang.String filePath) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContentID()
If the attachment is referenced by 'cid" the contentID should contain the corresponding content ID
|
java.lang.String |
getDisplayName()
Human readable file name
|
java.lang.String |
getFileName()
Physical file name
|
java.lang.String |
getFilePath()
Complete physical file path including its name and extension
|
java.lang.String |
getMimeType()
Mime-type of the attachment
|
int |
getRTFPosition()
Returns the inline-position of the attachment inside of the RTF-document
|
void |
setContentID(java.lang.String contentID)
Sets the contentID of the attachment
|
void |
setDisplayName(java.lang.String string)
Sets the display name
|
void |
setFileName(java.lang.String string) |
void |
setFilePath(java.lang.String filePath)
Sets the complete physical file path including its name and extension
|
void |
setMimeType(java.lang.String mimeType) |
void |
setRTFPosition(int rtfPosition)
Sets the RTF position in the body content
|
public java.lang.String getDisplayName()
IAttachment
getDisplayName
in interface IAttachment
public java.lang.String getFileName()
IAttachment
getFileName
in interface IAttachment
public java.lang.String getFilePath()
IAttachment
getFilePath
in interface IAttachment
public void setFilePath(java.lang.String filePath)
IAttachment
setFilePath
in interface IAttachment
filePath
- physical file pathpublic java.lang.String getMimeType()
IAttachment
getMimeType
in interface IAttachment
public void setMimeType(java.lang.String mimeType)
public void setDisplayName(java.lang.String string)
IAttachment
setDisplayName
in interface IAttachment
string
- display namepublic void setFileName(java.lang.String string)
public java.lang.String getContentID()
IAttachment
getContentID
in interface IAttachment
public void setContentID(java.lang.String contentID)
IAttachment
setContentID
in interface IAttachment
contentID
- Content IDpublic int getRTFPosition()
IAttachment
getRTFPosition
in interface IAttachment
public void setRTFPosition(int rtfPosition)
IAttachment
setRTFPosition
in interface IAttachment
rtfPosition
- RTF Position