Package de.galan.commons.net.mail
Class AttachmentDataSource
- java.lang.Object
-
- de.galan.commons.net.mail.AttachmentDataSource
-
- All Implemented Interfaces:
DataSource
public class AttachmentDataSource extends Object implements DataSource
Datasource for mail attachments
-
-
Constructor Summary
Constructors Constructor Description AttachmentDataSource(Attachment attachment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttachmentgetAttachment()StringgetContentType()InputStreamgetInputStream()StringgetName()OutputStreamgetOutputStream()
-
-
-
Constructor Detail
-
AttachmentDataSource
public AttachmentDataSource(Attachment attachment)
-
-
Method Detail
-
getAttachment
public Attachment getAttachment()
-
getContentType
public String getContentType()
- Specified by:
getContentTypein interfaceDataSource
-
getInputStream
public InputStream getInputStream() throws IOException
- Specified by:
getInputStreamin interfaceDataSource- Throws:
IOException
-
getName
public String getName()
- Specified by:
getNamein interfaceDataSource
-
getOutputStream
public OutputStream getOutputStream() throws IOException
- Specified by:
getOutputStreamin interfaceDataSource- Throws:
IOException
-
-