public class UnknownCommand extends java.lang.Object implements Command
CommandFactory
when the command is not known, as it is supposed to always
return a valid Command object.| Constructor and Description |
|---|
UnknownCommand(java.lang.String command) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroy the shell.
|
void |
setErrorStream(java.io.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(java.io.InputStream in)
Set the input stream that can be used by the shell to read input.
|
void |
setOutputStream(java.io.OutputStream out)
Set the output stream that can be used by the shell to write its output.
|
void |
start(Environment env)
Starts the shell.
|
public void setInputStream(java.io.InputStream in)
CommandsetInputStream in interface Commandpublic void setOutputStream(java.io.OutputStream out)
CommandsetOutputStream in interface Commandpublic void setErrorStream(java.io.OutputStream err)
CommandsetErrorStream in interface Commandpublic void setExitCallback(ExitCallback callback)
CommandsetExitCallback in interface Commandpublic void start(Environment env) throws java.io.IOException
Command
Thread(this).start();
Copyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.