Package javax0.repl
Class ConsoleConsole
- java.lang.Object
-
- javax0.repl.ConsoleConsole
-
- All Implemented Interfaces:
LocalConsole
public class ConsoleConsole extends java.lang.Object implements LocalConsole
LocalConsole
implementation that usesSystem.console()
-
-
Constructor Summary
Constructors Constructor Description ConsoleConsole()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
readLine(java.lang.String msg)
Read a line from the console.java.io.PrintWriter
writer()
-
-
-
Method Detail
-
readLine
public java.lang.String readLine(java.lang.String msg)
Description copied from interface:LocalConsole
Read a line from the console. This is not to be used by the commands only in case of special situations.- Specified by:
readLine
in interfaceLocalConsole
- Parameters:
msg
- the message printed to the consule as a special prompt.- Returns:
- the line read
-
writer
public java.io.PrintWriter writer()
- Specified by:
writer
in interfaceLocalConsole
- Returns:
- the print writer to the console.
-
-