public class ConsoleAdapters
extends java.lang.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 java.io.Reader |
getConsoleReader(java.lang.String charsetName)
Returns the reader for System.in.
|
static java.io.Writer |
getConsoleWriter(java.lang.String charsetName)
Returns the writer for System.out.
|
public static java.io.Reader getConsoleReader(java.lang.String charsetName)
throws java.io.UnsupportedEncodingException
charsetName - charset name, can be null.java.io.UnsupportedEncodingException - if specified charset is unsupportedpublic static java.io.Writer getConsoleWriter(java.lang.String charsetName)
throws java.io.UnsupportedEncodingException
charsetName - charset name, can be null.java.io.UnsupportedEncodingException - if specified charset is unsupportedCopyright © Copyright 2006-2019 The Scriptella Project Team.