public class ScpCommand extends java.lang.Object implements Command, java.lang.Runnable, FileSystemAware
| Modifier and Type | Field and Description |
|---|---|
protected ExitCallback |
callback |
protected java.io.OutputStream |
err |
protected java.io.IOException |
error |
protected java.io.InputStream |
in |
protected static org.slf4j.Logger |
log |
protected java.lang.String |
name |
protected boolean |
optD |
protected boolean |
optF |
protected boolean |
optP |
protected boolean |
optR |
protected boolean |
optT |
protected java.io.OutputStream |
out |
protected java.lang.String |
path |
protected FileSystemView |
root |
| Constructor and Description |
|---|
ScpCommand(java.lang.String command) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroy the shell.
|
void |
run() |
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 |
setFileSystemView(FileSystemView view)
Set the file system in which this shell will be executed.
|
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.
|
protected static final org.slf4j.Logger log
protected java.lang.String name
protected boolean optR
protected boolean optT
protected boolean optF
protected boolean optD
protected boolean optP
protected FileSystemView root
protected java.lang.String path
protected java.io.InputStream in
protected java.io.OutputStream out
protected java.io.OutputStream err
protected ExitCallback callback
protected java.io.IOException error
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 setFileSystemView(FileSystemView view)
FileSystemAwaresetFileSystemView in interface FileSystemAwarepublic void start(Environment env) throws java.io.IOException
Command
Thread(this).start();
public void destroy()
Commandpublic void run()
run in interface java.lang.RunnableCopyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.