Interface Redirector

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
ConsoleRedirector, GogoRedirector, NullRedirector, SocketRedirector

public interface Redirector extends Closeable
API def for a redirector.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the output stream
    int
    The port (or pseudo port) this one is connected to
    void
    Provide input

    Methods inherited from interface java.io.Closeable

    close
  • Method Details

    • getPort

      int getPort()
      The port (or pseudo port) this one is connected to
      Returns:
      the port
    • stdin

      void stdin(String s) throws Exception
      Provide input
      Parameters:
      s - the input
      Throws:
      Exception
    • getOut

      PrintStream getOut() throws Exception
      Get the output stream
      Throws:
      Exception