Fields
| Name | Description |
|---|---|
| buf | The byte array containing the data. |
| count | The index one greater than the last valid character in the input stream buffer. |
| mark | The currently marked position in the stream. |
| pos | The index of the next character to read from the input stream buffer. |
Constructors
| Name | Description |
|---|---|
| ByteArrayInputStream(byte[]) | Creates a new byte array input stream that reads data from the specified byte array. |
| ByteArrayInputStream(byte[], int, int) | Creates a new byte array input stream that reads data from the specified byte array. |
Methods
| Name | Description |
|---|---|
| available() | Returns the number of bytes that can be read from this input stream without blocking. |
| mark(int) | Set the current marked position in the stream. |
| markSupported() | Tests if ByteArrayInputStream supports mark/reset. |
| read() | Reads the next byte of data from this input stream. |
| read(byte[], int, int) | Reads up to len bytes of data into an array of bytes from this input stream. |
| reset() | Resets the buffer to the marked position. |
| skip(long) | Skips n bytes of input from this input stream. |