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