[]
Creates a new byte array input stream that reads data from the specified byte array. The byte array is not copied.
public ByteInputBuffer(byte[] buf)
Type | Name | Description |
---|---|---|
byte[] | buf | the input buffer. |
Creates a new byte array input stream that reads data from the specified byte array. Up to length characters are to be read from the byte array, starting at the indicated offset.
<p>The byte array is not copied.</p>
public ByteInputBuffer(byte[] buf, int offset, int length)
Type | Name | Description |
---|---|---|
byte[] | buf | the input buffer. |
int | offset | the offset in the buffer of the first byte to read. |
int | length | the maximum number of bytes to read from the buffer. |