com.caucho.jms.util
Class BytesMessageInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by com.caucho.jms.util.BytesMessageInputStream
All Implemented Interfaces:
java.io.Closeable

public class BytesMessageInputStream
extends java.io.InputStream

An input stream that reads from a BytesMessage.


Field Summary
protected static java.util.logging.Logger log
           
 
Constructor Summary
BytesMessageInputStream(BytesMessage message)
           
 
Method Summary
 int read()
           
 int read(byte[] buffer)
           
 int read(byte[] buffer, int offset, int length)
           
 
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
 

Field Detail

log

protected static java.util.logging.Logger log
Constructor Detail

BytesMessageInputStream

public BytesMessageInputStream(BytesMessage message)
Method Detail

read

public int read()
         throws java.io.IOException
Specified by:
read in class java.io.InputStream
Throws:
java.io.IOException

read

public int read(byte[] buffer,
                int offset,
                int length)
         throws java.io.IOException
Overrides:
read in class java.io.InputStream
Throws:
java.io.IOException

read

public int read(byte[] buffer)
         throws java.io.IOException
Overrides:
read in class java.io.InputStream
Throws:
java.io.IOException