org.apache.axis2.transport.jms.iowrappers
Class BytesMessageInputStream
java.lang.Object
java.io.InputStream
org.apache.axis2.transport.jms.iowrappers.BytesMessageInputStream
- All Implemented Interfaces:
- java.io.Closeable
public class BytesMessageInputStream
- extends java.io.InputStream
Input stream that reads data from a JMS BytesMessage.
Note that since the current position in the message is managed by
the underlying BytesMessage object, it is not possible to
use several instances of this class operating on a single
BytesMessage at the same time.
|
Method Summary |
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, reset, skip |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BytesMessageInputStream
public BytesMessageInputStream(javax.jms.BytesMessage message)
read
public int read()
throws JMSExceptionWrapper
- Specified by:
read in class java.io.InputStream
- Throws:
JMSExceptionWrapper
read
public int read(byte[] b,
int off,
int len)
throws JMSExceptionWrapper
- Overrides:
read in class java.io.InputStream
- Throws:
JMSExceptionWrapper
read
public int read(byte[] b)
throws JMSExceptionWrapper
- Overrides:
read in class java.io.InputStream
- Throws:
JMSExceptionWrapper
Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.