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(java.lang.String string)
Send data to the remote command just like the user had typed it.
|
void |
typeAndReturn(java.lang.String string)
Send data to the remote command and finish with a carriage return.
|
void interrupt() throws java.io.IOException
java.io.IOException
void type(java.lang.String string) throws java.io.IOException
string
- the typed key datajava.io.IOException
void carriageReturn() throws java.io.IOException
java.io.IOException
void typeAndReturn(java.lang.String string) throws java.io.IOException
string
- Stringjava.io.IOException
Copyright © 2024. All rights reserved.