public class BytesMessageDataSource extends Object implements org.apache.axiom.attachments.SizeAwareDataSource
BytesMessage.
Note that two input streams created by the same instance of this class can not be used at the same time.
| Constructor and Description |
|---|
BytesMessageDataSource(javax.jms.BytesMessage message) |
BytesMessageDataSource(javax.jms.BytesMessage message,
String contentType) |
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType() |
InputStream |
getInputStream() |
String |
getName() |
OutputStream |
getOutputStream() |
long |
getSize() |
public BytesMessageDataSource(javax.jms.BytesMessage message,
String contentType)
public BytesMessageDataSource(javax.jms.BytesMessage message)
public long getSize()
getSize in interface org.apache.axiom.ext.activation.SizeAwareDataSourcepublic String getContentType()
getContentType in interface DataSourcepublic InputStream getInputStream() throws IOException
getInputStream in interface DataSourceIOExceptionpublic String getName()
getName in interface DataSourcepublic OutputStream getOutputStream() throws IOException
getOutputStream in interface DataSourceIOExceptionCopyright © 2018 WSO2. All rights reserved.