java.lang.Object |
↳ |
com.atlassian.jira.configurator.console.DeviceConsoleProvider |
Class Overview
Implements a console as backed by a Java 1.6 System.console()
device.
This is preferred over the StreamConsoleProvider
when System.console()
provides a non-null
value, because it can suppress the display of passwords.
Public Constructors
public
DeviceConsoleProvider
(Console console)
Public Methods
public
void
print
(String text)
public
void
printErrorMessage
(String errorMessage)
public
void
println
(String text)
public
char
readFirstChar
(String prompt)
public
boolean
readYesNo
(String prompt, boolean defaultValue)
Protected Methods
protected
void
showPrompt
(String prompt)