API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.io. BufferedInputStream View Source
Author(s)
Arthur van Hoff
Since
JDK1.0
Version
1.57, 06/07/06
Serial
Hierarchy
 Object
      InputStream
          FilterInputStream
              BufferedInputStream
Implements
Subclasses
Description
public class BufferedInputStream
  A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the input and to support the mark and reset methods.
See also:   
Constructors
public BufferedInputStream (InputStream in)
  Creates a BufferedInputStream and saves its argument, the input stream in, for later use.
public BufferedInputStream (InputStream in, int size)
  Creates a BufferedInputStream with the specified buffer size, and saves its argument, the input stream in, for later use.
Methods
Hide/Show inherited methods
publicsynchronized int available () throws IOException [Overrides FilterInputStream]
  Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking by the next invocation of a method for this input stream.
public void close () throws IOException [Overrides FilterInputStream]
  Closes this input stream and releases any system resources associated with the stream.
publicsynchronized void mark (int readlimit) [Overrides FilterInputStream]
  See the general contract of the mark method of InputStream.
public boolean markSupported () [Overrides FilterInputStream]
  Tests if this input stream supports the mark and reset methods.
publicsynchronized int read () throws IOException [Overrides FilterInputStream] [Specified in InputStream]
  See the general contract of the read method of InputStream.
public int read (byte[] b) throws IOException [Inherited From FilterInputStream]
  Reads up to byte.length bytes of data from this input stream into an array of bytes.
publicsynchronized int read (byte[] b, int off, int len) throws IOException [Overrides FilterInputStream]
  Reads bytes from this byte-input stream into the specified byte array, starting at the given offset.
publicsynchronized void reset () throws IOException [Overrides FilterInputStream]
  See the general contract of the reset method of InputStream.
publicsynchronized long skip (long n) throws IOException [Overrides FilterInputStream]
  See the general contract of the skip method of InputStream.
Fields
Hide/Show inherited fields
protectedvolatile byte buf
  The internal buffer array where the data is stored.
protected int count
  The index one greater than the index of the last valid byte in the buffer.
protectedvolatile InputStream in [Inherited From FilterInputStream]
The input stream to be filtered.
protected int marklimit
  The maximum read ahead allowed after a call to the mark method before subsequent calls to the reset method fail.
protected int markpos
  The value of the pos field at the time the last mark method was called.
protected int pos
  The current position in the buffer.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar