public interface ShellWriter
| Modifier and Type | Method and Description |
|---|---|
void |
carriageReturn()
Send a carriage return to the remote command.
|
void |
interrupt()
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 |
typeAndReturn(String string)
Send data to the remote command and finish with a carriage return.
|
void interrupt()
throws IOException
IOExceptionvoid type(String string) throws IOException
string - the typed key dataIOExceptionvoid carriageReturn()
throws IOException
IOExceptionvoid typeAndReturn(String string) throws IOException
string - StringIOExceptionCopyright © 2025. All rights reserved.