public class JavaConsole extends Object implements ConsoleWrapper<Console>
Constructor and Description |
---|
JavaConsole() |
Modifier and Type | Method and Description |
---|---|
Console |
format(String fmt,
Object... args)
Writes a formatted string to this console's output stream using
the specified format string and arguments.
|
Console |
getConsole()
Return the console object
|
void |
JavaConsole() |
void |
printf(String format,
Object... args)
A convenience method to write a formatted string to this console's
output stream using the specified format string and arguments.
|
String |
readLine(String fmt,
Object... args)
Provides a formatted prompt, then reads a single line of text from the
console.
|
char[] |
readPassword(String fmt,
Object... args)
Provides a formatted prompt, then reads a password or passphrase from
the console with echoing disabled.
|
public void JavaConsole()
public Console format(String fmt, Object... args) throws IllegalFormatException
ConsoleWrapper
format
in interface ConsoleWrapper<Console>
IllegalFormatException
public void printf(String format, Object... args) throws IllegalFormatException
ConsoleWrapper
printf
in interface ConsoleWrapper<Console>
IllegalFormatException
public String readLine(String fmt, Object... args) throws IOError
ConsoleWrapper
readLine
in interface ConsoleWrapper<Console>
IOError
public char[] readPassword(String fmt, Object... args) throws IllegalFormatException, IOError
ConsoleWrapper
readPassword
in interface ConsoleWrapper<Console>
IOError
IllegalFormatException
public Console getConsole()
ConsoleWrapper
getConsole
in interface ConsoleWrapper<Console>
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.