Package com.sshtools.client.shell
Interface ShellWriter
- All Known Implementing Classes:
ShellController,ShellProcessController
public interface ShellWriter
-
Method Summary
Modifier and TypeMethodDescriptionvoidSend a carriage return to the remote command.voidInterrupt the process by sending a Ctrl+C to the process.voidSend data to the remote command just like the user had typed it.voidtypeAndReturn(String string) Send data to the remote command and finish with a carriage return.
-
Method Details
-
interrupt
Interrupt the process by sending a Ctrl+C to the process.- Throws:
IOException
-
type
Send data to the remote command just like the user had typed it.- Parameters:
string- the typed key data- Throws:
IOException
-
carriageReturn
Send a carriage return to the remote command.- Throws:
IOException
-
typeAndReturn
Send data to the remote command and finish with a carriage return.- Parameters:
string- String- Throws:
IOException
-