public class AttachmentDataSource extends Object implements DataSource
| Constructor and Description |
|---|
AttachmentDataSource(Attachment attachment) |
| Modifier and Type | Method and Description |
|---|---|
Attachment |
getAttachment() |
String |
getContentType() |
InputStream |
getInputStream() |
String |
getName() |
OutputStream |
getOutputStream() |
public AttachmentDataSource(Attachment attachment)
public Attachment getAttachment()
public String getContentType()
getContentType in interface DataSourcepublic InputStream getInputStream() throws IOException
getInputStream in interface DataSourceIOExceptionpublic String getName()
getName in interface DataSourcepublic OutputStream getOutputStream() throws IOException
getOutputStream in interface DataSourceIOExceptionCopyright © 2017. All rights reserved.