com.jcraft.jsch

Class ChannelSftp

Implemented Interfaces:
Runnable

public class ChannelSftp
extends com.jcraft.jsch.ChannelSession

Nested Class Summary

static class
ChannelSftp.Ssh_exp_name

Field Summary

static int
APPEND
static int
OVERWRITE
static int
RESUME
static int
SSH_FX_BAD_MESSAGE
static int
SSH_FX_CONNECTION_LOST
static int
SSH_FX_EOF
static int
SSH_FX_FAILURE
static int
SSH_FX_NO_CONNECTION
static int
SSH_FX_NO_SUCH_FILE
static int
SSH_FX_OK
static int
SSH_FX_OP_UNSUPPORTED
static int
SSH_FX_PERMISSION_DENIED

Method Summary

void
cd(String path)
void
chgrp(int gid, String path)
void
chmod(int permissions, String path)
void
chown(int uid, String path)
void
exit()
void
finalize()
InputStream
get(String src)
void
get(String src, OutputStream dst)
void
get(String src, OutputStream dst, SftpProgressMonitor monitor)
void
get(String src, String dst)
void
get(String src, String dst, SftpProgressMonitor monitor)
void
get(String src, String dst, SftpProgressMonitor monitor, int mode)
InputStream
get(String src, SftpProgressMonitor monitor, int mode)
InputStream
get(String src, int mode)
void
init()
void
lcd(String path)
String
lpwd()
java.util.Vector
ls(String path)
SftpATTRS
lstat(String path)
void
mkdir(String path)
void
put(InputStream src, String dst)
void
put(InputStream src, String dst, SftpProgressMonitor monitor)
void
put(InputStream src, String dst, SftpProgressMonitor monitor, int mode)
void
put(InputStream src, String dst, int mode)
OutputStream
put(String dst)
void
put(String src, String dst)
void
put(String src, String dst, SftpProgressMonitor monitor)
void
put(String src, String dst, SftpProgressMonitor monitor, int mode)
void
put(String src, String dst, int mode)
OutputStream
put(String dst, SftpProgressMonitor monitor, int mode)
OutputStream
put(String dst, int mode)
String
pwd()
void
quit()
void
rename(String oldpath, String newpath)
void
rm(String path)
void
rmdir(String path)
void
setMtime(String path, int mtime)
void
setStat(String path, SftpATTRS attr)
void
start()
SftpATTRS
stat(String path)
void
symlink(String oldpath, String newpath)
String
version()

Methods inherited from class com.jcraft.jsch.ChannelSession

run

Methods inherited from class com.jcraft.jsch.Channel

connect, disconnect, finalize, getExitStatus, getExtInputStream, getInputStream, getOutputStream, isConnected, isEOF, run, sendSignal, setExtOutputStream, setInputStream, setOutputStream, setXForwarding, start

Field Details

APPEND

public static final int APPEND

Field Value:
2


OVERWRITE

public static final int OVERWRITE

Field Value:
0


RESUME

public static final int RESUME

Field Value:
1


SSH_FX_BAD_MESSAGE

public static final int SSH_FX_BAD_MESSAGE

Field Value:
5


SSH_FX_CONNECTION_LOST

public static final int SSH_FX_CONNECTION_LOST

Field Value:
7


SSH_FX_EOF

public static final int SSH_FX_EOF

Field Value:
1


SSH_FX_FAILURE

public static final int SSH_FX_FAILURE

Field Value:
4


SSH_FX_NO_CONNECTION

public static final int SSH_FX_NO_CONNECTION

Field Value:
6


SSH_FX_NO_SUCH_FILE

public static final int SSH_FX_NO_SUCH_FILE

Field Value:
2


SSH_FX_OK

public static final int SSH_FX_OK

Field Value:
0


SSH_FX_OP_UNSUPPORTED

public static final int SSH_FX_OP_UNSUPPORTED

Field Value:
8


SSH_FX_PERMISSION_DENIED

public static final int SSH_FX_PERMISSION_DENIED

Field Value:
3

Method Details

cd

public void cd(String path)
            throws SftpException


chgrp

public void chgrp(int gid,
                  String path)
            throws SftpException


chmod

public void chmod(int permissions,
                  String path)
            throws SftpException


chown

public void chown(int uid,
                  String path)
            throws SftpException


exit

public void exit()


finalize

public void finalize()
            throws Throwable
Overrides:
finalize in interface Channel


get

public InputStream get(String src)
            throws SftpException


get

public void get(String src,
                OutputStream dst)
            throws SftpException


get

public void get(String src,
                OutputStream dst,
                SftpProgressMonitor monitor)
            throws SftpException


get

public void get(String src,
                String dst)
            throws SftpException


get

public void get(String src,
                String dst,
                SftpProgressMonitor monitor)
            throws SftpException


get

public void get(String src,
                String dst,
                SftpProgressMonitor monitor,
                int mode)
            throws SftpException


get

public InputStream get(String src,
                       SftpProgressMonitor monitor,
                       int mode)
            throws SftpException


get

public InputStream get(String src,
                       int mode)
            throws SftpException


init

public void init()


lcd

public void lcd(String path)
            throws SftpException


lpwd

public String lpwd()


ls

public java.util.Vector ls(String path)
            throws SftpException


lstat

public SftpATTRS lstat(String path)
            throws SftpException


mkdir

public void mkdir(String path)
            throws SftpException


put

public void put(InputStream src,
                String dst)
            throws SftpException


put

public void put(InputStream src,
                String dst,
                SftpProgressMonitor monitor)
            throws SftpException


put

public void put(InputStream src,
                String dst,
                SftpProgressMonitor monitor,
                int mode)
            throws SftpException


put

public void put(InputStream src,
                String dst,
                int mode)
            throws SftpException


put

public OutputStream put(String dst)
            throws SftpException


put

public void put(String src,
                String dst)
            throws SftpException


put

public void put(String src,
                String dst,
                SftpProgressMonitor monitor)
            throws SftpException


put

public void put(String src,
                String dst,
                SftpProgressMonitor monitor,
                int mode)
            throws SftpException


put

public void put(String src,
                String dst,
                int mode)
            throws SftpException


put

public OutputStream put(String dst,
                        SftpProgressMonitor monitor,
                        int mode)
            throws SftpException


put

public OutputStream put(String dst,
                        int mode)
            throws SftpException


pwd

public String pwd()


quit

public void quit()


rename

public void rename(String oldpath,
                   String newpath)
            throws SftpException


rm

public void rm(String path)
            throws SftpException


rmdir

public void rmdir(String path)
            throws SftpException


setMtime

public void setMtime(String path,
                     int mtime)
            throws SftpException


setStat

public void setStat(String path,
                    SftpATTRS attr)
            throws SftpException


start

public void start()
            throws JSchException
Overrides:
start in interface Channel


stat

public SftpATTRS stat(String path)
            throws SftpException


symlink

public void symlink(String oldpath,
                    String newpath)
            throws SftpException


version

public String version()