22.20
java.io.BufferedOutputStream
THE PACKAGE JAVA.IO
22.20 The Class
java.io.BufferedOutputStream
A
BufferedOutputStream
adds functionality to another output stream, namely
the ability to buffer the output. When the
BufferedOutputStream
is created, an
internal buffer array is created. As bytes are written to the stream, they are stored
in the internal buffer, which is flushed as necessary, thereby performing output to
the contained output stream in large blocks rather than a byte at a time.
public class BufferedOutputStream extends FilterOutputStream {
protected byte[] buf;
protected int count;
public BufferedOutputStream(OutputStream out);
public BufferedOutputStream(OutputStream out, int size);
public void write(int b) throws IOException;
public void write(byte[] b)
throws IOException, NullPointerException;
public void write(byte[] b, int off, int len)
throws IOException, NullPointerException,
IndexOutOfBoundsException;
public void flush() throws IOException;
}
22.20.1
protected byte[] buf;
The internal buffer array.
22.20.2
protected int count;
This value is always in the range
0
through
buf.length
; elements
buf[0]
through
buf[count 1]
contain valid byte data.
22.20.3
public BufferedOutputStream(OutputStream out)
This constructor initializes a newly created
BufferedOutputStream
by saving its
argument, the input stream
out
, for later use. An internal buffer array is created
and stored in
buf
.
732
footer
Our partners:
PHP: Hypertext Preprocessor Best Web Hosting
Java Web Hosting
Inexpensive Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Jsp Hosting
Cheap Hosting
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved