com.go.trove.io
Class FastBufferedOutputStream

java.lang.Object
  |
  +--java.io.OutputStream
        |
        +--java.io.FilterOutputStream
              |
              +--com.go.trove.io.FastBufferedOutputStream

public class FastBufferedOutputStream
extends java.io.FilterOutputStream

FastBufferedOutputStream is just a slightly modified version of BufferedOutputStream. The synchronization is gone, and so writes are faster. Refer to the original BufferedOutputStream for documentation.


Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
FastBufferedOutputStream(java.io.OutputStream out)
           
FastBufferedOutputStream(java.io.OutputStream out, int size)
           
 
Method Summary
 void flush()
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.io.FilterOutputStream
close, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FastBufferedOutputStream

public FastBufferedOutputStream(java.io.OutputStream out)

FastBufferedOutputStream

public FastBufferedOutputStream(java.io.OutputStream out,
                                int size)
Method Detail

write

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

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
Overrides:
write in class java.io.FilterOutputStream

flush

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