Package com.adaptris.mail
Class Attachment
java.lang.Object
com.adaptris.mail.Attachment
Attachment class.
-
Method Details
-
getBytes
public byte[] getBytes()Get the underlying attachment as bytes.- Returns:
- the attachment.
-
getFilename
Get the filename associated with this attachment.- Returns:
- the filename (or null if not set).
-
getContentType
Get the contentType associated with this attachment.- Returns:
- the contentType (or null if not set).
-
getEncoding
Get the encoding for the attachment mime body part- Returns:
- the encoding
-
toString
-