Class OSGiConsole
java.lang.Object
org.openhab.core.io.console.karaf.OSGiConsole
- All Implemented Interfaces:
Console
- Author:
- Markus Rathgeb - Initial contribution
-
Constructor Summary
ConstructorsConstructorDescriptionOSGiConsole(String scope, PrintStream out, org.apache.karaf.shell.api.console.Session session) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.karaf.shell.api.console.SessionvoidvoidvoidvoidprintUsage(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
-
OSGiConsole
public OSGiConsole(String scope, PrintStream out, org.apache.karaf.shell.api.console.Session session)
-
-
Method Details
-
printf
-
print
-
println
-
printUsage
Description copied from interface:Consoleusage output is treated differently from other output as it might differ between different kinds of consoles- Specified by:
printUsagein interfaceConsole- Parameters:
s- the main usage string (console independent)
-
readLine
Description copied from interface:ConsoleReads a line from the console. The prompt is displayed before the line is read.- Specified by:
readLinein interfaceConsole- Parameters:
prompt- the prompt to displaymask- 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
-
getSession
public org.apache.karaf.shell.api.console.Session getSession()
-