public interface ConsoleWrapper
| Modifier and Type | Method and Description |
|---|---|
void |
format(String fmt,
Object... args)
Writes a formatted string to this console's output stream using
the specified format string and arguments.
|
boolean |
hasConsole()
Check if the wrapper does have a console.
|
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.
|
void format(String fmt, Object... args) throws IllegalFormatException
fmt - args - IllegalFormatExceptionvoid printf(String format, Object... args) throws IllegalFormatException
format - args - IllegalStateExceptionIllegalFormatExceptionString readLine(String fmt, Object... args) throws IOError
fmt - args - IOErrorchar[] readPassword(String fmt, Object... args) throws IllegalFormatException, IOError
fmt - args - IOErrorIllegalFormatExceptionboolean hasConsole()
Copyright © 2015 JBoss by Red Hat. All rights reserved.