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.Session
void
void
void
void
printUsage
(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:Console
usage output is treated differently from other output as it might differ between different kinds of consoles- Specified by:
printUsage
in interfaceConsole
- Parameters:
s
- the main usage string (console independent)
-
readLine
Description copied from interface:Console
Reads a line from the console. The prompt is displayed before the line is read.- Specified by:
readLine
in 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()
-