public class SftpCommand extends Object implements Channel
| Modifier and Type | Class and Description |
|---|---|
static interface |
SftpCommand.CommandExecutor |
| Constructor and Description |
|---|
SftpCommand(SftpClient client) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
doInteractive(BufferedReader stdin,
PrintStream stdout,
PrintStream stderr) |
SftpClient |
getClient() |
String |
getCurrentRemoteDirectory() |
boolean |
isOpen() |
static void |
main(String[] args) |
protected String |
resolveRemotePath(String pathArg) |
void |
setCurrentRemoteDirectory(String path) |
public SftpCommand(SftpClient client)
public final SftpClient getClient()
public void doInteractive(BufferedReader stdin, PrintStream stdout, PrintStream stderr) throws Exception
Exceptionpublic String getCurrentRemoteDirectory()
public void setCurrentRemoteDirectory(String path)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface ChannelIOExceptionCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.