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.SizeAwareDataSource
public String getContentType()
getContentType
in interface DataSource
public InputStream getInputStream() throws IOException
getInputStream
in interface DataSource
IOException
public String getName()
getName
in interface DataSource
public OutputStream getOutputStream() throws IOException
getOutputStream
in interface DataSource
IOException
Copyright © 2018 WSO2. All rights reserved.