public class FileAttachment extends EmailAttachment
email attachment.
Content type is not set by user, but by javax.mail
framework.| Modifier and Type | Field and Description |
|---|---|
protected java.io.File |
file |
contentId, name, size, targetMessage| Constructor and Description |
|---|
FileAttachment(java.io.File file,
java.lang.String name,
java.lang.String contentId) |
| Modifier and Type | Method and Description |
|---|---|
javax.activation.DataSource |
getDataSource()
Returns
DataSource implementation, depending of attachment source. |
java.io.File |
getFile()
Returns attached file.
|
attachment, getContentId, getName, getSize, isEmbeddedInto, isInline, setEmbeddedMessage, setSize, toByteArray, writeToFile, writeToStreampublic FileAttachment(java.io.File file,
java.lang.String name,
java.lang.String contentId)
public java.io.File getFile()
public javax.activation.DataSource getDataSource()
EmailAttachmentDataSource implementation, depending of attachment source.getDataSource in class EmailAttachmentCopyright © 2003-2013 Jodd Team