| java.lang.Object java.io.OutputStream it.unimi.dsi.fastutil.io.FastBufferedOutputStream
FastBufferedOutputStream | public class FastBufferedOutputStream extends OutputStream (Code) | | Lightweight, unsynchronized output stream buffering class.
This class provides buffering for output streams, but all methods are unsynchronised.
since: 4.4 |
Field Summary | |
final public static int | DEFAULT_BUFFER_SIZE The default size of the internal buffer in bytes (8Ki). | protected int | avail The number of buffer bytes available starting from
FastBufferedOutputStream.pos
(it must be always equal to buffer.length - pos ). | protected byte | buffer The internal buffer. | protected OutputStream | os The underlying output stream. | protected int | pos The current position in the buffer. |
Method Summary | |
public void | close() | public void | flush() | public void | write(int b) | public void | write(byte b, int offset, int length) |
DEFAULT_BUFFER_SIZE | final public static int DEFAULT_BUFFER_SIZE(Code) | | The default size of the internal buffer in bytes (8Ki).
|
buffer | protected byte buffer(Code) | | The internal buffer.
|
pos | protected int pos(Code) | | The current position in the buffer.
|
FastBufferedOutputStream | public FastBufferedOutputStream(OutputStream os, int bufferSize)(Code) | | Creates a new fast buffered output stream by wrapping a given output stream with a given buffer size.
Parameters: os - an output stream to wrap. Parameters: bufferSize - the size in bytes of the internal buffer. |
|
|