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
IOExceptionpublic boolean isCached()
public void cache()
throws IOException
IOExceptionpublic void hold()
throws IOException
IOExceptionpublic void release()
public String getContentType()
getContentType in interface javax.activation.DataSourcepublic InputStream getInputStream()
getInputStream in interface javax.activation.DataSourcepublic String getName()
getName in interface javax.activation.DataSourcepublic void setName(String name)
public OutputStream getOutputStream() throws IOException
getOutputStream in interface javax.activation.DataSourceIOExceptionApache CXF