public final class BytesAsInput extends Object implements Input
There is no thread-safety guarantee.
Constructor and Description |
---|
BytesAsInput(byte[] bytes)
Ctor.
|
BytesAsInput(Bytes bytes)
Ctor.
|
BytesAsInput(String text)
Ctor.
|
BytesAsInput(Text text)
Ctor.
|
public BytesAsInput(Text text)
text
- The textpublic BytesAsInput(String text)
text
- The textpublic BytesAsInput(byte[] bytes)
bytes
- The bytespublic BytesAsInput(Bytes bytes)
bytes
- The bytespublic InputStream stream() throws IOException
Input
stream
in interface Input
IOException
- If something goes wrongCopyright © 2017 Cactoos. All rights reserved.