public class ByteArrayAttachment extends EmailAttachment
email attachment.| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
content |
protected java.lang.String |
contentType |
contentId, name, size, targetMessage| Constructor and Description |
|---|
ByteArrayAttachment(byte[] content,
java.lang.String contentType,
java.lang.String name,
java.lang.String contentId) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContentType()
Returns content type.
|
javax.activation.DataSource |
getDataSource()
Returns
ByteArrayDataSource. |
attachment, getContentId, getName, getSize, isEmbeddedInto, isInline, setEmbeddedMessage, setSize, toByteArray, writeToFile, writeToStreamprotected final byte[] content
protected final java.lang.String contentType
public ByteArrayAttachment(byte[] content,
java.lang.String contentType,
java.lang.String name,
java.lang.String contentId)
public javax.activation.DataSource getDataSource()
ByteArrayDataSource.getDataSource in class EmailAttachmentpublic java.lang.String getContentType()
Copyright © 2003-2013 Jodd Team