public class SystemTextTerminal extends Object implements TextTerminal
TextTerminal implemented using System.out, System.in and Scanner.
 It is not capable to mask input strings, therefore not recommended when reading sensitive data.| Constructor and Description | 
|---|
SystemTextTerminal()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
println()
Terminates the current line by writing the line separator string. 
 | 
void | 
rawPrint(String message)
Prints the message in its raw form. 
 | 
String | 
read(boolean masking)
Reads a line of text 
 | 
public String read(boolean masking)
TextTerminalread in interface TextTerminalmasking - true, if the input should be masked (for example to enter a password)public void rawPrint(String message)
TextTerminalrawPrint in interface TextTerminalpublic void println()
TextTerminalprintln in interface TextTerminal