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 underlyingBytesMessageobject, it is not possible to use several instances of this class operating on a singleBytesMessageat 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 intread()intread(byte[] b)intread(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:
readin classInputStream- Throws:
JMSExceptionWrapper
-
read
public int read(byte[] b, int off, int len) throws JMSExceptionWrapper- Overrides:
readin classInputStream- Throws:
JMSExceptionWrapper
-
read
public int read(byte[] b) throws JMSExceptionWrapper- Overrides:
readin classInputStream- Throws:
JMSExceptionWrapper
-
-