Constructs a reader that decodes bytes from the given channel according to the named charset.
An invocation of this method of the form
behaves in exactly the same way as the expressionChannels.newReader(ch, csname)
Channels.newReader(ch, Charset.forName(csName) .newDecoder(), -1);
ch
| The channel from which bytes will be read | |
csName
| The name of the charset to be used |
UnsupportedCharsetException
| If no support for the named charset is available in this instance of the Java virtual machine |
Diagram: Support