Interface ShellWriter

All Known Implementing Classes:
ShellController, ShellProcessController

public interface ShellWriter
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Send a carriage return to the remote command.
    void
    Interrupt the process by sending a Ctrl+C to the process.
    void
    type(String string)
    Send data to the remote command just like the user had typed it.
    void
    Send data to the remote command and finish with a carriage return.
  • Method Details

    • interrupt

      void interrupt() throws IOException
      Interrupt the process by sending a Ctrl+C to the process.
      Throws:
      IOException
    • type

      void type(String string) throws IOException
      Send data to the remote command just like the user had typed it.
      Parameters:
      string - the typed key data
      Throws:
      IOException
    • carriageReturn

      void carriageReturn() throws IOException
      Send a carriage return to the remote command.
      Throws:
      IOException
    • typeAndReturn

      void typeAndReturn(String string) throws IOException
      Send data to the remote command and finish with a carriage return.
      Parameters:
      string - String
      Throws:
      IOException