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