Class DeviceConsoleProvider
java.lang.Object
com.atlassian.jira.configurator.console.DeviceConsoleProvider
- All Implemented Interfaces:
ConsoleProvider
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.- Since:
- v5.1
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.jira.configurator.console.ConsoleProvider
ConsoleProvider.Factory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IOExceptionclosed()voidflush()voidvoidprintErrorMessage(String errorMessage) voidvoidprintln()voidcharreadFirstChar(String prompt) readLine()readPassword(String prompt) booleanprotected voidshowPrompt(String prompt)
-
Constructor Details
-
DeviceConsoleProvider
-
-
Method Details
-
readLine
- Throws:
IOException
-
readPassword
- Throws:
IOException
-
println
public void println() -
print
-
println
-
printErrorMessage
- Specified by:
printErrorMessagein interfaceConsoleProvider
-
printErrorMessage
- Specified by:
printErrorMessagein interfaceConsoleProvider
-
flush
public void flush() -
closed
-
showPrompt
-
readLine
- Specified by:
readLinein interfaceConsoleProvider- Throws:
IOException
-
readFirstChar
- Specified by:
readFirstCharin interfaceConsoleProvider- Throws:
IOException
-
readYesNo
- Specified by:
readYesNoin interfaceConsoleProvider- Throws:
IOException
-