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