public class SystemTextTerminal extends AbstractTextTerminal<SystemTextTerminal>
TextTerminal implemented using System.out, System.in and Scanner.
It is not capable to mask input strings, therefore not recommended when reading sensitive data.DEFAULT_USER_INTERRUPT_KEY, SYSPROP_PROPERTIES_FILE_LOCATION| Constructor and Description |
|---|
SystemTextTerminal() |
| Modifier and Type | Method and Description |
|---|---|
void |
println()
Terminates the current line by writing the line separator string.
|
void |
rawPrint(java.lang.String message)
Prints the message in its raw form.
|
java.lang.String |
read(boolean masking)
Reads a line of text
|
addDefaultProperty, getDefaultProperties, getProperties, getPropertiesPrefixes, getPropertiesReader, init, initProperties, initProperties, initPropertiesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitabort, bindHandler, dispose, dispose, moveToLineStart, print, print, printf, printf, println, println, rawPrint, registerUserInterruptHandler, resetLine, resetToBookmark, setBookmarkpublic java.lang.String read(boolean masking)
TextTerminalmasking - true, if the input should be masked (for example to enter a password)public void rawPrint(java.lang.String message)
TextTerminalpublic void println()
TextTerminal