Class BytesMessageDataSource
java.lang.Object
org.wso2.carbon.inbound.endpoint.protocol.jms.BytesMessageDataSource
- All Implemented Interfaces:
DataSource,org.apache.axiom.attachments.SizeAwareDataSource,org.apache.axiom.ext.activation.SizeAwareDataSource
public class BytesMessageDataSource
extends Object
implements org.apache.axiom.attachments.SizeAwareDataSource
Data source implementation wrapping a JMS
BytesMessage.
Note that two input streams created by the same instance of this class can not be used at the same time.
-
Constructor Summary
ConstructorsConstructorDescriptionBytesMessageDataSource(javax.jms.BytesMessage message) BytesMessageDataSource(javax.jms.BytesMessage message, String contentType) -
Method Summary
-
Constructor Details
-
BytesMessageDataSource
-
BytesMessageDataSource
public BytesMessageDataSource(javax.jms.BytesMessage message)
-
-
Method Details
-
getSize
public long getSize()- Specified by:
getSizein interfaceorg.apache.axiom.ext.activation.SizeAwareDataSource
-
getContentType
- Specified by:
getContentTypein interfaceDataSource
-
getInputStream
- Specified by:
getInputStreamin interfaceDataSource- Throws:
IOException
-
getName
- Specified by:
getNamein interfaceDataSource
-
getOutputStream
- Specified by:
getOutputStreamin interfaceDataSource- Throws:
IOException
-