public class ConsoleAdapters extends Object
System.in and System.out
TODO: Move this class to a spi.support.text package.
| Constructor and Description |
|---|
ConsoleAdapters() |
| Modifier and Type | Method and Description |
|---|---|
static Reader |
getConsoleReader(String charsetName)
Returns the reader for System.in.
|
static Writer |
getConsoleWriter(String charsetName)
Returns the writer for System.out.
|
public static Reader getConsoleReader(String charsetName) throws UnsupportedEncodingException
charsetName - charset name, can be null.UnsupportedEncodingException - if specified charset is unsupportedpublic static Writer getConsoleWriter(String charsetName) throws UnsupportedEncodingException
charsetName - charset name, can be null.UnsupportedEncodingException - if specified charset is unsupportedCopyright © 2006–2019. All rights reserved.