Package de.galan.commons.net.mail
Class Attachment
java.lang.Object
de.galan.commons.net.mail.Attachment
Represention of a Mail-Attachment
-
Constructor Summary
ConstructorsConstructorDescriptionAttachment(String filename, byte[] data) Attachment(String filename, byte[] data, MimeType mimeType) Attachment(String filename, byte[] data, String mimeType) Attachment(String filename, InputStream stream) Attachment(String filename, InputStream stream, MimeType mimeType) Attachment(String filename, InputStream stream, String mimeType) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getData()voidsetData(byte[] attachmentData) voidsetData(InputStream stream) voidsetFilename(String filename) voidsetMimeType(String mimeType)
-
Constructor Details
-
Attachment
-
Attachment
-
Attachment
-
Attachment
- Throws:
IOException
-
Attachment
- Throws:
IOException
-
Attachment
- Throws:
IOException
-
-
Method Details
-
getData
public byte[] getData() -
setData
public void setData(byte[] attachmentData) -
setData
- Throws:
IOException
-
getMimeType
-
setMimeType
-
getFilename
-
setFilename
-