Package com.sshtools.client.shell
Interface ShellWriter
- All Known Implementing Classes:
ShellController
,ShellProcessController
public interface ShellWriter
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Send a carriage return to the remote command.void
Interrupt the process by sending a Ctrl+C to the process.void
Send data to the remote command just like the user had typed it.void
typeAndReturn
(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
-