com.go.trove.io
Class ByteBufferOutputStream

java.lang.Object
  |
  +--java.io.OutputStream
        |
        +--com.go.trove.io.ByteBufferOutputStream
Direct Known Subclasses:
ByteBufferOutputStream

public class ByteBufferOutputStream
extends java.io.OutputStream

An OutputStream that writes into a ByteBuffer.

Version:
11 , 00/12/05
Author:
Brian S O'Neill

Constructor Summary
ByteBufferOutputStream(ByteBuffer buffer)
           
 
Method Summary
 void close()
           
 void flush()
           
 void write(byte[] bytes)
           
 void write(byte[] bytes, int offset, int length)
           
 void write(int b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteBufferOutputStream

public ByteBufferOutputStream(ByteBuffer buffer)
Method Detail

write

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

write

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

write

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

flush

public void flush()
           throws java.io.IOException
Overrides:
flush in class java.io.OutputStream

close

public void close()
Overrides:
close in class java.io.OutputStream