Package org.apache.cxf.attachment
Class AttachmentDataSource
- java.lang.Object
- 
- org.apache.cxf.attachment.AttachmentDataSource
 
- 
- All Implemented Interfaces:
- javax.activation.DataSource
 
 public class AttachmentDataSource extends Object implements javax.activation.DataSource 
- 
- 
Constructor SummaryConstructors Constructor Description AttachmentDataSource(String ctParam, InputStream inParam)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcache(Message message)StringgetContentType()InputStreamgetInputStream()StringgetName()OutputStreamgetOutputStream()voidhold(Message message)booleanisCached()voidrelease()voidsetName(String name)
 
- 
- 
- 
Constructor Detail- 
AttachmentDataSourcepublic AttachmentDataSource(String ctParam, InputStream inParam) 
 
- 
 - 
Method Detail- 
isCachedpublic boolean isCached() 
 - 
cachepublic void cache(Message message) throws IOException - Throws:
- IOException
 
 - 
holdpublic void hold(Message message) throws IOException - Throws:
- IOException
 
 - 
releasepublic void release() 
 - 
getContentTypepublic String getContentType() - Specified by:
- getContentTypein interface- javax.activation.DataSource
 
 - 
getInputStreampublic InputStream getInputStream() - Specified by:
- getInputStreamin interface- javax.activation.DataSource
 
 - 
getNamepublic String getName() - Specified by:
- getNamein interface- javax.activation.DataSource
 
 - 
setNamepublic void setName(String name) 
 - 
getOutputStreampublic OutputStream getOutputStream() throws IOException - Specified by:
- getOutputStreamin interface- javax.activation.DataSource
- Throws:
- IOException
 
 
- 
 
-