Fields
Name | Description |
---|---|
buf | The buffer where data is stored. |
count | The index one greater than the index of the last valid byte in the buffer. |
marklimit | The maximum read ahead allowed after a call to the mark method before subsequent calls to the reset method fail. |
markpos | The value of the pos field at the time the last mark method was called. |
pos | The current position in the buffer. |
Constructors
Name | Description |
---|---|
BufferedInputStream(InputStream) | Creates a new buffered input stream to read data from the specified input stream with a default 512-byte buffer size. |
BufferedInputStream(InputStream, int) | Creates a new buffered input stream to read data from the specified input stream with the specified buffer size. |
Methods
Name | Description |
---|---|
available() | Returns the number of bytes that can be read from this input stream without blocking. |
mark(int) | Marks the current position in this input stream. |
markSupported() | Tests if this input stream supports the mark and reset methods. |
read() | Reads the next byte of data from this buffered input stream. |
read(byte[], int, int) | Reads bytes into a portion of an array. |
reset() | Repositions this stream to the position at the time the mark method was last called on this input stream. |
skip(long) | Skips over and discards n bytes of data from the input stream. |