Class StreamConsoleProvider
java.lang.Object
com.atlassian.jira.configurator.console.StreamConsoleProvider
- All Implemented Interfaces:
ConsoleProvider
Console provider based on
System.in and System.out.
The DeviceConsoleProvider should be preferred when System.console()
returns a non-null value.- 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()protected StringreadPassword(String prompt) booleanprotected voidshowPrompt(String prompt)
-
Constructor Details
-
StreamConsoleProvider
-
-
Method Details
-
readLineImpl
- Throws:
IOException
-
readLine
- Throws:
IOException
-
readPassword
- Throws:
IOException
-
print
-
println
public void println() -
println
-
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
-
printErrorMessage
- Specified by:
printErrorMessagein interfaceConsoleProvider
-
printErrorMessage
- Specified by:
printErrorMessagein interfaceConsoleProvider
-