com.caucho.jms.util
Class BytesMessageOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by com.caucho.jms.util.BytesMessageOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class BytesMessageOutputStream
extends java.io.OutputStream

An output stream that writes to a BytesMessage.


Field Summary
protected static java.util.logging.Logger log
           
 
Constructor Summary
BytesMessageOutputStream(BytesMessage message)
           
 
Method Summary
 void write(byte[] buffer)
           
 void write(byte[] buffer, int offset, int length)
           
 void write(int b)
           
 
Methods inherited from class java.io.OutputStream
close, flush
 
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

BytesMessageOutputStream

public BytesMessageOutputStream(BytesMessage message)
Method Detail

write

public void write(int b)
           throws java.io.IOException
Specified by:
write in class java.io.OutputStream
Throws:
java.io.IOException

write

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

write

public void write(byte[] buffer)
           throws java.io.IOException
Overrides:
write in class java.io.OutputStream
Throws:
java.io.IOException