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