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