Class TextIoFactory

  • public class TextIoFactory
    extends java.lang.Object
    Provides TextTerminal and TextIO implementations.
    The concrete TextTerminal implementation is obtained as follows:
    1. If the system property "org.beryx.textio.TextTerminal" is defined, then it is taken to be the fully-qualified name of a concrete TextTerminal class. The class is loaded and instantiated. If this process fails, then the next step is executed.
    2. a 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.
    3. A default implementation is provided as follows:
    • Field Detail


        public static final java.lang.String TEXT_TERMINAL_CLASS_PROPERTY
        See Also:
        Constant Field Values
    • Constructor Detail

      • TextIoFactory

        public TextIoFactory()
    • Method Detail

      • getTextTerminal

        public static TextTerminal<?> getTextTerminal()
      • getTextIO

        public static TextIO getTextIO()