Interface ConsoleActor

All Superinterfaces:
AutoCloseable, Closeable, CommandActor
All Known Implementing Classes:
CommandLineActor

public interface ConsoleActor extends CommandActor, Closeable
Represents the CommandActor of a command-line application
  • Method Details

    • getInputStream

      @NotNull @NotNull InputStream getInputStream()
      Returns the InputStream that is being used to take input from the console.
      Returns:
      The console's input stream.
    • getOutputStream

      @NotNull @NotNull PrintStream getOutputStream()
      Returns the PrintStream that is being used to send normal output to the console.
      Returns:
      The console's output stream.
    • getErrorStream

      @NotNull @NotNull PrintStream getErrorStream()
      Returns the PrintStream that is being used to send errors to the console.
      Returns:
      The console's output stream.
    • getScanner

      @NotNull @NotNull Scanner getScanner()
      Returns the Scanner that is being polled for input.
      Returns:
      The console scanner.