Class BytesMessageInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.apache.axis2.transport.jms.iowrappers.BytesMessageInputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class BytesMessageInputStream extends InputStream
Input stream that reads data from a JMSBytesMessage
. Note that since the current position in the message is managed by the underlyingBytesMessage
object, it is not possible to use several instances of this class operating on a singleBytesMessage
at the same time.
-
-
Constructor Summary
Constructors Constructor Description BytesMessageInputStream(javax.jms.BytesMessage message)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
read()
int
read(byte[] b)
int
read(byte[] b, int off, int len)
-
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Method Detail
-
read
public int read() throws JMSExceptionWrapper
- Specified by:
read
in classInputStream
- Throws:
JMSExceptionWrapper
-
read
public int read(byte[] b, int off, int len) throws JMSExceptionWrapper
- Overrides:
read
in classInputStream
- Throws:
JMSExceptionWrapper
-
read
public int read(byte[] b) throws JMSExceptionWrapper
- Overrides:
read
in classInputStream
- Throws:
JMSExceptionWrapper
-
-