xxl.io
Class BufferedOutputStream

java.lang.Object
  |
  +--java.io.OutputStream
        |
        +--xxl.io.BufferedOutputStream

public class BufferedOutputStream
extends java.io.OutputStream


Field Summary
protected  Block block
           
protected  Function blockFactory
           
protected  Buffer buffer
           
protected  int bufferedBytes
           
protected  java.lang.Integer counter
           
protected  int offset
           
protected  java.io.OutputStream outputStream
           
protected  java.util.LinkedList updateList
           
 
Constructor Summary
BufferedOutputStream(java.io.OutputStream outputStream, Buffer buffer, Function blockFactory)
           
 
Method Summary
 void close()
           
 void flush()
           
 void write(int b)
           
 
Methods inherited from class java.io.OutputStream
write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

outputStream

protected java.io.OutputStream outputStream

buffer

protected Buffer buffer

blockFactory

protected Function blockFactory

block

protected Block block

offset

protected int offset

bufferedBytes

protected int bufferedBytes

counter

protected java.lang.Integer counter

updateList

protected java.util.LinkedList updateList
Constructor Detail

BufferedOutputStream

public BufferedOutputStream(java.io.OutputStream outputStream,
                            Buffer buffer,
                            Function blockFactory)
Method Detail

close

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

flush

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

write

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