public final class InputAsBytes extends Object implements Bytes
There is no thread-safety guarantee.
Bytes.NoNulls
Constructor and Description |
---|
InputAsBytes(Input input)
Ctor.
|
InputAsBytes(Input input,
int max)
Ctor.
|
public InputAsBytes(Input input)
input
- The inputpublic InputAsBytes(Input input, int max)
input
- The inputmax
- Max length of the buffer for readingpublic byte[] asBytes() throws IOException
Bytes
asBytes
in interface Bytes
IOException
- If failsCopyright © 2017 Cactoos. All rights reserved.