public class LazyDataSource extends Object implements javax.activation.DataSource
| Constructor and Description |
|---|
LazyDataSource(String id,
Collection<Attachment> attachments) |
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType() |
javax.activation.DataSource |
getDataSource() |
InputStream |
getInputStream() |
String |
getName() |
OutputStream |
getOutputStream() |
void |
setDataSource(javax.activation.DataSource dataSource) |
public LazyDataSource(String id, Collection<Attachment> attachments)
public String getContentType()
getContentType in interface javax.activation.DataSourcepublic InputStream getInputStream() throws IOException
getInputStream in interface javax.activation.DataSourceIOExceptionpublic String getName()
getName in interface javax.activation.DataSourcepublic OutputStream getOutputStream() throws IOException
getOutputStream in interface javax.activation.DataSourceIOExceptionpublic javax.activation.DataSource getDataSource()
public void setDataSource(javax.activation.DataSource dataSource)
Apache CXF