public final class InputAsText extends Object implements Text
There is no thread-safety guarantee.
Constructor and Description |
---|
InputAsText(Input input)
New
InputAsText with default charset. |
InputAsText(Input input,
Charset encoding)
New
InputAsText with specified charset. |
public InputAsText(Input input)
InputAsText
with default charset.input
- The inputpublic InputAsText(Input input, Charset encoding)
InputAsText
with specified charset.input
- The inputencoding
- Text charsetpublic String asString() throws IOException
Text
asString
in interface Text
IOException
- If failsCopyright © 2017 Cactoos. All rights reserved.