Package de.galan.commons.net.mail
Class Attachment
- java.lang.Object
-
- de.galan.commons.net.mail.Attachment
-
public class Attachment extends Object
Represention of a Mail-Attachment
-
-
Constructor Summary
Constructors Constructor Description Attachment(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getData()StringgetFilename()StringgetMimeType()voidsetData(byte[] attachmentData)voidsetData(InputStream stream)voidsetFilename(String filename)voidsetMimeType(String mimeType)
-
-
-
Constructor Detail
-
Attachment
public Attachment(String filename, byte[] data)
-
Attachment
public Attachment(String filename, InputStream stream) throws IOException
- Throws:
IOException
-
Attachment
public Attachment(String filename, InputStream stream, MimeType mimeType) throws IOException
- Throws:
IOException
-
Attachment
public Attachment(String filename, InputStream stream, String mimeType) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getData
public byte[] getData()
-
setData
public void setData(byte[] attachmentData)
-
setData
public void setData(InputStream stream) throws IOException
- Throws:
IOException
-
getMimeType
public String getMimeType()
-
setMimeType
public void setMimeType(String mimeType)
-
getFilename
public String getFilename()
-
setFilename
public void setFilename(String filename)
-
-