public class AttachmentDataSource extends Object implements DataSource
Constructor and Description |
---|
AttachmentDataSource(String ctParam,
InputStream inParam) |
Modifier and Type | Method and Description |
---|---|
void |
cache(Message message) |
String |
getContentType() |
InputStream |
getInputStream() |
String |
getName() |
OutputStream |
getOutputStream() |
void |
hold(Message message) |
boolean |
isCached() |
void |
release() |
void |
setName(String name) |
public AttachmentDataSource(String ctParam, InputStream inParam)
public boolean isCached()
public void cache(Message message) throws IOException
IOException
public void hold(Message message) throws IOException
IOException
public void release()
public String getContentType()
getContentType
in interface DataSource
public InputStream getInputStream()
getInputStream
in interface DataSource
public String getName()
getName
in interface DataSource
public void setName(String name)
public OutputStream getOutputStream() throws IOException
getOutputStream
in interface DataSource
IOException
Apache CXF