An buffer of bytes that can be read sequentially. More...
Public Member Functions | |
| ByteInputStream (byte[] bytes) | |
| Initializes a new instance of the fm.liveswitch.ByteInputStream class. More... | |
| ByteInputStream (byte[] bytes, int offset) | |
| Initializes a new instance of the fm.liveswitch.ByteInputStream class. More... | |
| int | getAvailable () |
| Gets the number of available bytes for reading. More... | |
| void | mark () |
| Marks the current position for a later reset. More... | |
| int | read () |
| Reads a value from the byte array. More... | |
| int | read (byte[] buffer, int offset, int length) |
| Reads a segment from the byte array. More... | |
| void | reset () |
| Resets the stream to the marked position. More... | |
| int | skip (int n) |
| Advances the stream position by the amount specified. More... | |
An buffer of bytes that can be read sequentially.
| fm.liveswitch.ByteInputStream.ByteInputStream | ( | byte[] | bytes | ) |
Initializes a new instance of the fm.liveswitch.ByteInputStream class.
| bytes | The bytes. |
| fm.liveswitch.ByteInputStream.ByteInputStream | ( | byte[] | bytes, |
| int | offset | ||
| ) |
Initializes a new instance of the fm.liveswitch.ByteInputStream class.
| bytes | The bytes. |
| offset | The offset. |
| int fm.liveswitch.ByteInputStream.getAvailable | ( | ) |
Gets the number of available bytes for reading.
| void fm.liveswitch.ByteInputStream.mark | ( | ) |
Marks the current position for a later reset.
| int fm.liveswitch.ByteInputStream.read | ( | ) |
Reads a value from the byte array.
| int fm.liveswitch.ByteInputStream.read | ( | byte[] | buffer, |
| int | offset, | ||
| int | length | ||
| ) |
Reads a segment from the byte array.
| void fm.liveswitch.ByteInputStream.reset | ( | ) |
Resets the stream to the marked position.
| int fm.liveswitch.ByteInputStream.skip | ( | int | n | ) |
Advances the stream position by the amount specified.
| n | The number of bytes to skip. |