- getContentId
Returns content id for inline attachments. Value is null when attachment is not
embedded.
- isInline
Returns true if it is an inline attachment.
- setEmbeddedMessage
Sets target message for embedded attachments.
- <init>
Creates new attachment with given name and content id for inline attachments.
- getDataSource
Returns DataSource implementation, depending on attachment source.
- getEncodedName
Returns encoded attachment name.
- isEmbeddedInto
Returns true if attachment is embedded into provided message.
- setSize
Sets size of attachment.
- writeToStream
Saves attachment to the output stream.
- getName
Returns attachment name.
- isEmbedded
Returns true if the attachment is embedded. Embedded attachment is one when
#getContentId() is not n
- toByteArray
Returns byte content of the attachment.