THE PACKAGE JAVA.IO
java.io.BufferedInputStream
22.10
22.10 The Class
java.io.BufferedInputStream
A
BufferedInputStream
 adds functionality to another input stream namely,
the ability to buffer the input and to support the
mark
 and
reset
 methods. When
the
BufferedInputStream
 is created, an internal buffer array is created. As bytes
from the stream are read or skipped, the internal buffer is refilled as necessary
from the contained input stream, many bytes at a time. The
mark
 operation
remembers a point in the input stream and the
reset
 operation causes all the
bytes read since the most recent
mark
 operation to be reread before new bytes are
taken from the contained input stream.
public class BufferedInputStream extends FilterInputStream {
protected byte[] buf;
protected int count = 0;
protected int pos = 0;
protected int markpos =  1;
protected int marklimit = 0;
public BufferedInputStream(InputStream in);
public BufferedInputStream(InputStream in, int size);
public int read() throws IOException;
public int read(byte[] b)
throws IOException, NullPointerException;
public int read(byte[] b, int off, int len)
throws IOException, NullPointerException,
IndexOutOfBoundsException;
public long skip(long n) throws IOException;
public int available() throws IOException;
public void mark(int readlimit);
public void reset() throws IOException;
public boolean markSupported();
}
22.10.1
protected byte[] buf;
The internal buffer array. When necessary, it may be replaced by another array of
a different size.
22.10.2
protected int count = 0;
This value is always in the range
0
 through
buf.length
; elements
buf[0]
through
buf[count 1]
contain buffered input data obtained from the underlying
input stream.
699






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

java hosting

 

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