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
- IllegalFormatException
void printf(String format, Object... args) throws IllegalFormatException
format
- args
- IllegalStateException
IllegalFormatException
String readLine(String fmt, Object... args) throws IOError
fmt
- args
- IOError
char[] readPassword(String fmt, Object... args) throws IllegalFormatException, IOError
fmt
- args
- IOError
IllegalFormatException
boolean hasConsole()
Copyright © 2023 JBoss by Red Hat. All rights reserved.