Constructor and Description |
---|
ByteArrayInStream(byte[] buffer)
Creates a new stream based on the given buffer.
|
Modifier and Type | Method and Description |
---|---|
void |
read(byte[] buf)
Reads up to buf.length bytes from the stream
into the given byte buffer.
|
void |
setBytes(byte[] buffer)
Sets this stream to read from the given buffer
|
public ByteArrayInStream(byte[] buffer)
buffer
- the bytes to readCopyright © 2020. All rights reserved.