@NotExtensible @ThreadSafety(level=INTERFACE_THREADSAFE) public interface EMailAttachment extends javax.activation.DataSource
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContentType()
Retrieves the content type for this attachment.
|
byte[] |
getData()
Retrieves the raw data for this attachment.
|
java.lang.String |
getDisposition()
Retrieves the disposition for this attachment.
|
java.io.InputStream |
getInputStream()
Retrieves an input stream that can be used to read the attachment data.
|
java.lang.String |
getName()
Retrieves the filename for this attachment.
|
java.io.OutputStream |
getOutputStream()
Throws an
IOException to indicate that it is not possible to write
to this data source. |
boolean |
isInline()
Indicates whether this attachment should have a disposition of "inline"
rather than "attachment".
|
java.lang.String |
toString()
Retrieves a string representation of this email attachment.
|
java.lang.String getName()
getName
in interface javax.activation.DataSource
java.lang.String getContentType()
getContentType
in interface javax.activation.DataSource
boolean isInline()
true
if this attachment should have a disposition of
"inline", or false
if this attachment should have a
disposition of "attachment".java.lang.String getDisposition()
isInline()
.byte[] getData()
java.io.InputStream getInputStream()
getInputStream
in interface javax.activation.DataSource
java.io.OutputStream getOutputStream() throws java.io.IOException
IOException
to indicate that it is not possible to write
to this data source.getOutputStream
in interface javax.activation.DataSource
java.io.IOException
- To indicate that it is not possible to write to this
data source.java.lang.String toString()
toString
in class java.lang.Object