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
IOException
void type(String string) throws IOException
string
- the typed key dataIOException
void carriageReturn() throws IOException
IOException
void typeAndReturn(String string) throws IOException
string
- StringIOException
Copyright © 2024. All rights reserved.