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.DataSource
public InputStream getInputStream() throws IOException
getInputStream
in interface javax.activation.DataSource
IOException
public String getName()
getName
in interface javax.activation.DataSource
public OutputStream getOutputStream() throws IOException
getOutputStream
in interface javax.activation.DataSource
IOException
public javax.activation.DataSource getDataSource()
public void setDataSource(javax.activation.DataSource dataSource)
Apache CXF