borland Packages Class Hierarchy jb.io Package
java.lang.Object +----java.io.OutputStream +----java.io.FilterOutputStream +----com.borland.jb.io.FastBufferedOutputStream
Variables Constructors Properties Methods
An unsynchronized buffered output stream that reads out characters from a stream without causing a read every time. The data is read from a buffer, then subsequent reads result in fast buffer access. This class is patterned after java.io.BufferedOutputStream. The primary difference is that all access is unsynchronized (not thread-safe), for faster response.
protected byte[] bufThe buffer where data is stored.
protected int countThe number of bytes in the buffer.
public FastBufferedOutputStream(OutputStream out)Creates a new buffered stream with a default buffer size of 2048 characters.
public FastBufferedOutputStream(OutputStream out, int size)Creates a new buffered stream with the specified buffer size.
public void flush()Flushes the stream. This will write any buffered output bytes.
This method throws an IOException if an I/O error occurrs.
public void write(byte[] b, int off, int len)Writes a subarray of bytes. This method throws an IOException if an I/O error occurrs.
public void write(int b)Writes a byte. This method will block until the byte is actually written.
This method throws an IOException if an I/O error occurrs.