public final class TextAsBytes extends Object implements Bytes
There is no thread-safety guarantee.
Constructor and Description |
---|
TextAsBytes(String text)
Ctor.
|
TextAsBytes(Text text)
Ctor.
|
TextAsBytes(Text text,
Charset cset)
Ctor.
|
public TextAsBytes(String text)
text
- The sourcepublic TextAsBytes(Text text)
text
- The sourcepublic byte[] asBytes() throws IOException
Bytes
asBytes
in interface Bytes
IOException
- If failsCopyright © 2017 Cactoos. All rights reserved.