public class TextIoFactory extends Object
TextTerminal and TextIO implementations.
TextTerminal implementation is obtained as follows:
TextTerminal class.
The class is loaded and instantiated. If this process fails, then the next step is executed.ServiceLoader loads the configured TextTerminalProviders and searches for the
first one capable to provide a TextTerminal instance.
If none is found, then the next step is executed.System.console() is not null, and a JLine ConsoleReader can be created, then a JLineTextTerminal is provided.System.console() is not null, then a ConsoleTextTerminal is provided.SwingTextTerminal is provided.SystemTextTerminal is provided| Modifier and Type | Field and Description |
|---|---|
static String |
TEXT_TERMINAL_CLASS_PROPERTY |
| Constructor and Description |
|---|
TextIoFactory() |
| Modifier and Type | Method and Description |
|---|---|
static TextIO |
getTextIO() |
static TextTerminal |
getTextTerminal() |
public static final String TEXT_TERMINAL_CLASS_PROPERTY
public static TextTerminal getTextTerminal()
public static TextIO getTextIO()