|
FlexDoc/Javadoc 2.0 Demo Java Doc |
Field Summary |
||
protected byte[] |
The internal buffer where data is stored.
|
|
protected int |
The number of valid bytes in the buffer.
|
Fields inherited from class java.io.FilterOutputStream |
Constructor Summary |
||
Creates a new buffered output stream to write data to the
specified underlying output stream.
|
||
BufferedOutputStream(OutputStream out, int size)
Creates a new buffered output stream to write data to the
specified underlying output stream with the specified buffer
size.
|
Method Summary |
||
void |
flush()
Flushes this buffered output stream.
|
|
void |
write(byte[] b, int off, int len)
Writes len bytes from the specified byte array
starting at offset off to this buffered output stream.
|
|
void |
write(int b)
Writes the specified byte to this buffered output stream.
|
Methods inherited from class java.io.FilterOutputStream |
Methods inherited from class java.io.OutputStream |
Methods inherited from class java.lang.Object |
public BufferedOutputStream |
(OutputStream out) |
public BufferedOutputStream |
(OutputStream out, int size) |
public void write |
(int b) |
throws |
public void write |
(byte[] b, int off, int len) |
throws |
Ordinarily this method stores bytes from the given array into this stream's buffer, flushing the buffer to the underlying output stream as needed. If the requested length is at least as large as this stream's buffer, however, then this method will flush the buffer and write the bytes directly to the underlying output stream. Thus redundant BufferedOutputStreams will not copy data unnecessarily.
public void flush |
() |
throws |
|
FlexDoc/Javadoc 2.0 Demo Java Doc |