Class OSGiConsole
java.lang.Object
org.openhab.core.io.console.karaf.OSGiConsole
- All Implemented Interfaces:
- Console
- Author:
- Markus Rathgeb - Initial contribution
- 
Constructor SummaryConstructorsConstructorDescriptionOSGiConsole(String scope, PrintStream out, org.apache.karaf.shell.api.console.Session session) 
- 
Method SummaryModifier and TypeMethodDescriptionorg.apache.karaf.shell.api.console.Session@Nullable StringgetUser()Returns the user name associated with the console, or null if no user is associated.voidvoidvoidvoidprintUsage(String s) usage output is treated differently from other output as it might differ between different kinds of consolesReads a line from the console.
- 
Constructor Details- 
OSGiConsolepublic OSGiConsole(String scope, PrintStream out, org.apache.karaf.shell.api.console.Session session) 
 
- 
- 
Method Details- 
printf
- 
print
- 
println
- 
printUsageDescription copied from interface:Consoleusage output is treated differently from other output as it might differ between different kinds of consoles- Specified by:
- printUsagein interface- Console
- Parameters:
- s- the main usage string (console independent)
 
- 
readLineDescription copied from interface:ConsoleReads a line from the console. The prompt is displayed before the line is read.- Specified by:
- readLinein interface- Console
- Parameters:
- prompt- the prompt to display
- mask- the character to use for masking input (e.g. '*'), or null if no masking is required
- Returns:
- the line read from the console
- Throws:
- IOException- if an I/O error occurs
 
- 
getUserDescription copied from interface:ConsoleReturns the user name associated with the console, or null if no user is associated.
- 
getSessionpublic org.apache.karaf.shell.api.console.Session getSession()
 
-