com.caucho.amqp.io
Class AmqpStreamWriter

java.lang.Object
  extended by java.io.OutputStream
      extended by com.caucho.amqp.io.AmqpBaseWriter
          extended by com.caucho.amqp.io.AmqpStreamWriter
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class AmqpStreamWriter
extends AmqpBaseWriter


Constructor Summary
AmqpStreamWriter(WriteStream os)
           
 
Method Summary
 void flush()
           
 int getOffset()
           
 void write(int ch)
           
 void writeByte(int offset, int value)
           
 
Methods inherited from class com.caucho.amqp.io.AmqpBaseWriter
shiftRight, writeInt
 
Methods inherited from class java.io.OutputStream
close, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AmqpStreamWriter

public AmqpStreamWriter(WriteStream os)
Method Detail

write

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

flush

public void flush()
           throws java.io.IOException
Specified by:
flush in interface java.io.Flushable
Overrides:
flush in class java.io.OutputStream
Throws:
java.io.IOException

getOffset

public int getOffset()
Specified by:
getOffset in class AmqpBaseWriter

writeByte

public void writeByte(int offset,
                      int value)
Specified by:
writeByte in class AmqpBaseWriter