public interface Command
InvertedShellWrapper
.Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroy the shell.
|
void |
setErrorStream(OutputStream err)
Set the error stream that can be used by the shell to write its errors.
|
void |
setExitCallback(ExitCallback callback)
Set the callback that the shell has to call when it is closed.
|
void |
setInputStream(InputStream in)
Set the input stream that can be used by the shell to read input.
|
void |
setOutputStream(OutputStream out)
Set the output stream that can be used by the shell to write its output.
|
void |
start(Environment env)
Starts the shell.
|
void setInputStream(InputStream in)
in
- void setOutputStream(OutputStream out)
out
- void setErrorStream(OutputStream err)
err
- void setExitCallback(ExitCallback callback)
callback
- void start(Environment env) throws IOException
Thread(this).start();
env
- IOException
void destroy()
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.