Interface TerminalFactory

All Known Implementing Classes:
DefaultTerminalFactory

public interface TerminalFactory
This interface is for abstracting the creation of your Terminal object. The bundled implementation is DefaultTerminalFactory, which will use a simple auto-detection mechanism for figuring out which terminal implementation to create based on characteristics of the system the program is running on.

  • Method Summary

    Modifier and Type
    Method
    Description
    Instantiates a Terminal according to the factory implementation.
  • Method Details

    • createTerminal

      Terminal createTerminal() throws IOException
      Instantiates a Terminal according to the factory implementation.
      Returns:
      Terminal implementation
      Throws:
      IOException - If there was an I/O error with the underlying input/output system