public class ChannelSftp extends ChannelSession
Modifier and Type | Class and Description |
---|---|
(package private) class |
ChannelSftp.Header |
class |
ChannelSftp.LsEntry |
static interface |
ChannelSftp.LsEntrySelector
This interface will be passed as an argument for
ls method. |
private class |
ChannelSftp.RequestQueue |
Channel.MyPipedInputStream, Channel.PassiveInputStream, Channel.PassiveOutputStream
Modifier and Type | Field and Description |
---|---|
private int[] |
ackid |
static int |
APPEND |
private Buffer |
buf |
private int |
client_version |
private java.lang.String |
cwd |
private boolean |
extension_hardlink |
private boolean |
extension_posix_rename |
private boolean |
extension_statvfs |
private java.util.Hashtable |
extensions |
private java.lang.String |
fEncoding |
private boolean |
fEncoding_is_utf8 |
private static java.lang.String |
file_separator |
private static char |
file_separatorc |
private static boolean |
fs_is_bs |
private java.lang.String |
home |
private boolean |
interactive |
private java.io.InputStream |
io_in |
private java.lang.String |
lcwd |
private static int |
LOCAL_MAXIMUM_PACKET_SIZE |
private static int |
LOCAL_WINDOW_SIZE_MAX |
private static int |
MAX_MSG_LENGTH |
private Buffer |
obuf |
private Packet |
opacket |
static int |
OVERWRITE |
private Packet |
packet |
static int |
RESUME |
private ChannelSftp.RequestQueue |
rq |
private int |
seq |
private int |
server_version |
private static int |
SSH_FILEXFER_ATTR_ACMODTIME |
private static int |
SSH_FILEXFER_ATTR_EXTENDED |
private static int |
SSH_FILEXFER_ATTR_PERMISSIONS |
private static int |
SSH_FILEXFER_ATTR_SIZE |
private static int |
SSH_FILEXFER_ATTR_UIDGID |
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 |
private static int |
SSH_FXF_APPEND |
private static int |
SSH_FXF_CREAT |
private static int |
SSH_FXF_EXCL |
private static int |
SSH_FXF_READ |
private static int |
SSH_FXF_TRUNC |
private static int |
SSH_FXF_WRITE |
private static byte |
SSH_FXP_ATTRS |
private static byte |
SSH_FXP_CLOSE |
private static byte |
SSH_FXP_DATA |
private static byte |
SSH_FXP_EXTENDED |
private static byte |
SSH_FXP_EXTENDED_REPLY |
private static byte |
SSH_FXP_FSETSTAT |
private static byte |
SSH_FXP_FSTAT |
private static byte |
SSH_FXP_HANDLE |
private static byte |
SSH_FXP_INIT |
private static byte |
SSH_FXP_LSTAT |
private static byte |
SSH_FXP_MKDIR |
private static byte |
SSH_FXP_NAME |
private static byte |
SSH_FXP_OPEN |
private static byte |
SSH_FXP_OPENDIR |
private static byte |
SSH_FXP_READ |
private static byte |
SSH_FXP_READDIR |
private static byte |
SSH_FXP_READLINK |
private static byte |
SSH_FXP_REALPATH |
private static byte |
SSH_FXP_REMOVE |
private static byte |
SSH_FXP_RENAME |
private static byte |
SSH_FXP_RMDIR |
private static byte |
SSH_FXP_SETSTAT |
private static byte |
SSH_FXP_STAT |
private static byte |
SSH_FXP_STATUS |
private static byte |
SSH_FXP_SYMLINK |
private static byte |
SSH_FXP_VERSION |
private static byte |
SSH_FXP_WRITE |
private static java.lang.String |
UTF8 |
private java.lang.String |
version |
agent_forwarding, env, pty, tcol, terminal_mode, thp, trow, ttype, twp, xforwading
close, connected, connectTimeout, eof_local, eof_remote, exitstatus, id, index, io, lmpsize, lwsize, lwsize_max, notifyme, open_confirmation, recipient, reply, rmpsize, rwsize, SSH_MSG_CHANNEL_OPEN_CONFIRMATION, SSH_MSG_CHANNEL_OPEN_FAILURE, SSH_MSG_CHANNEL_WINDOW_ADJUST, SSH_OPEN_ADMINISTRATIVELY_PROHIBITED, SSH_OPEN_CONNECT_FAILED, SSH_OPEN_RESOURCE_SHORTAGE, SSH_OPEN_UNKNOWN_CHANNEL_TYPE, thread, type
Constructor and Description |
---|
ChannelSftp() |
Modifier and Type | Method and Description |
---|---|
private void |
_get(java.lang.String src,
java.io.OutputStream dst,
SftpProgressMonitor monitor,
int mode,
long skip) |
private SftpATTRS |
_lstat(java.lang.String path) |
void |
_put(java.io.InputStream src,
java.lang.String dst,
SftpProgressMonitor monitor,
int mode) |
private byte[] |
_realpath(java.lang.String path) |
private boolean |
_sendCLOSE(byte[] handle,
ChannelSftp.Header header) |
private void |
_setStat(java.lang.String path,
SftpATTRS attr) |
private SftpATTRS |
_stat(byte[] path) |
private SftpATTRS |
_stat(java.lang.String path) |
private SftpStatVFS |
_statVFS(byte[] path) |
private SftpStatVFS |
_statVFS(java.lang.String path) |
void |
cd(java.lang.String path) |
private boolean |
checkStatus(int[] ackid,
ChannelSftp.Header header) |
void |
chgrp(int gid,
java.lang.String path) |
void |
chmod(int permissions,
java.lang.String path) |
void |
chown(int uid,
java.lang.String path) |
void |
disconnect() |
void |
exit() |
private void |
fill(Buffer buf,
int len) |
private int |
fill(byte[] buf,
int s,
int len) |
java.io.InputStream |
get(java.lang.String src) |
java.io.InputStream |
get(java.lang.String src,
int mode)
Deprecated.
This method will be deleted in the future.
|
void |
get(java.lang.String src,
java.io.OutputStream dst) |
void |
get(java.lang.String src,
java.io.OutputStream dst,
SftpProgressMonitor monitor) |
void |
get(java.lang.String src,
java.io.OutputStream dst,
SftpProgressMonitor monitor,
int mode,
long skip) |
java.io.InputStream |
get(java.lang.String src,
SftpProgressMonitor monitor) |
java.io.InputStream |
get(java.lang.String src,
SftpProgressMonitor monitor,
int mode)
Deprecated.
This method will be deleted in the future.
|
java.io.InputStream |
get(java.lang.String src,
SftpProgressMonitor monitor,
long skip) |
void |
get(java.lang.String src,
java.lang.String dst) |
void |
get(java.lang.String src,
java.lang.String dst,
SftpProgressMonitor monitor) |
void |
get(java.lang.String src,
java.lang.String dst,
SftpProgressMonitor monitor,
int mode) |
int |
getBulkRequests()
This method will return the value how many requests may be
sent at any one time.
|
private java.lang.String |
getCwd() |
java.lang.String |
getExtension(java.lang.String key) |
java.lang.String |
getHome() |
int |
getServerVersion() |
private java.util.Vector |
glob_local(java.lang.String _path) |
private java.util.Vector |
glob_remote(java.lang.String _path) |
void |
hardlink(java.lang.String oldpath,
java.lang.String newpath) |
private ChannelSftp.Header |
header(Buffer buf,
ChannelSftp.Header header) |
(package private) void |
init() |
private static boolean |
isLocalAbsolutePath(java.lang.String path) |
private boolean |
isPattern(byte[] path) |
private boolean |
isPattern(java.lang.String path) |
private boolean |
isPattern(java.lang.String path,
byte[][] utf8) |
private boolean |
isRemoteDir(java.lang.String path) |
private java.lang.String |
isUnique(java.lang.String path)
This method will check if the given string can be expanded to the
unique string.
|
void |
lcd(java.lang.String path) |
private java.lang.String |
localAbsolutePath(java.lang.String path) |
java.lang.String |
lpwd() |
java.util.Vector |
ls(java.lang.String path) |
void |
ls(java.lang.String path,
ChannelSftp.LsEntrySelector selector)
List files specified by the remote
path . |
SftpATTRS |
lstat(java.lang.String path) |
void |
mkdir(java.lang.String path) |
void |
put(java.io.InputStream src,
java.lang.String dst) |
void |
put(java.io.InputStream src,
java.lang.String dst,
int mode) |
void |
put(java.io.InputStream src,
java.lang.String dst,
SftpProgressMonitor monitor) |
void |
put(java.io.InputStream src,
java.lang.String dst,
SftpProgressMonitor monitor,
int mode)
Sends data from the input stream
src to dst file. |
java.io.OutputStream |
put(java.lang.String dst) |
java.io.OutputStream |
put(java.lang.String dst,
int mode) |
java.io.OutputStream |
put(java.lang.String dst,
SftpProgressMonitor monitor,
int mode) |
java.io.OutputStream |
put(java.lang.String dst,
SftpProgressMonitor monitor,
int mode,
long offset)
Sends data from the output stream to
dst file. |
void |
put(java.lang.String src,
java.lang.String dst) |
void |
put(java.lang.String src,
java.lang.String dst,
int mode) |
void |
put(java.lang.String src,
java.lang.String dst,
SftpProgressMonitor monitor) |
void |
put(java.lang.String src,
java.lang.String dst,
SftpProgressMonitor monitor,
int mode)
Sends data from
src file to dst file. |
private void |
putHEAD(Buffer buf,
byte type,
int length) |
private void |
putHEAD(byte type,
int length) |
java.lang.String |
pwd() |
void |
quit() |
private void |
read(byte[] buf,
int s,
int l) |
java.lang.String |
readlink(java.lang.String path) |
java.lang.String |
realpath(java.lang.String path) |
private java.lang.String |
remoteAbsolutePath(java.lang.String path) |
void |
rename(java.lang.String oldpath,
java.lang.String newpath) |
void |
rm(java.lang.String path) |
void |
rmdir(java.lang.String path) |
private void |
sendCLOSE(byte[] path) |
private void |
sendFSTAT(byte[] handle) |
private void |
sendHARDLINK(byte[] p1,
byte[] p2) |
private void |
sendINIT() |
private void |
sendLSTAT(byte[] path) |
private void |
sendMKDIR(byte[] path,
SftpATTRS attr) |
private void |
sendOPEN(byte[] path,
int mode) |
private void |
sendOPENA(byte[] path) |
private void |
sendOPENDIR(byte[] path) |
private void |
sendOPENR(byte[] path) |
private void |
sendOPENW(byte[] path) |
private void |
sendPacketPath(byte fxp,
byte[] path) |
private void |
sendPacketPath(byte fxp,
byte[] p1,
byte[] p2) |
private void |
sendPacketPath(byte fxp,
byte[] p1,
byte[] p2,
java.lang.String extension) |
private void |
sendPacketPath(byte fxp,
byte[] path,
java.lang.String extension) |
private void |
sendREAD(byte[] handle,
long offset,
int length) |
private void |
sendREAD(byte[] handle,
long offset,
int length,
ChannelSftp.RequestQueue rrq) |
private void |
sendREADDIR(byte[] path) |
private void |
sendREADLINK(byte[] path) |
private void |
sendREALPATH(byte[] path) |
private void |
sendREMOVE(byte[] path) |
private void |
sendRENAME(byte[] p1,
byte[] p2) |
private void |
sendRMDIR(byte[] path) |
private void |
sendSETSTAT(byte[] path,
SftpATTRS attr) |
private void |
sendSTAT(byte[] path) |
private void |
sendSTATVFS(byte[] path) |
private void |
sendSYMLINK(byte[] p1,
byte[] p2) |
private int |
sendWRITE(byte[] handle,
long offset,
byte[] data,
int start,
int length) |
void |
setBulkRequests(int bulk_requests)
Specify how many requests may be sent at any one time.
|
private void |
setCwd(java.lang.String cwd) |
void |
setFilenameEncoding(java.lang.String encoding) |
void |
setMtime(java.lang.String path,
int mtime) |
void |
setStat(java.lang.String path,
SftpATTRS attr) |
private void |
skip(long foo) |
void |
start() |
SftpATTRS |
stat(java.lang.String path) |
SftpStatVFS |
statVFS(java.lang.String path) |
void |
symlink(java.lang.String oldpath,
java.lang.String newpath) |
private void |
throwStatusError(Buffer buf,
int i) |
java.lang.String |
version() |
run, sendRequests, setAgentForwarding, setEnv, setEnv, setEnv, setPty, setPtySize, setPtyType, setPtyType, setTerminalMode, setXForwarding
addRemoteWindowSize, close, connect, connect, del, disconnect, eof_remote, eof, genChannelOpenPacket, getChannel, getChannel, getData, getExitStatus, getExtInputStream, getId, getInputStream, getOutputStream, getRecipient, getSession, isClosed, isConnected, isEOF, sendChannelOpen, sendOpenConfirmation, sendOpenFailure, sendSignal, setExitStatus, setExtOutputStream, setExtOutputStream, setInputStream, setInputStream, setLocalPacketSize, setLocalWindowSize, setLocalWindowSizeMax, setOutputStream, setOutputStream, setRecipient, setRemotePacketSize, setRemoteWindowSize, setSession, write_ext, write, write
private static final int LOCAL_MAXIMUM_PACKET_SIZE
private static final int LOCAL_WINDOW_SIZE_MAX
private static final byte SSH_FXP_INIT
private static final byte SSH_FXP_VERSION
private static final byte SSH_FXP_OPEN
private static final byte SSH_FXP_CLOSE
private static final byte SSH_FXP_READ
private static final byte SSH_FXP_WRITE
private static final byte SSH_FXP_LSTAT
private static final byte SSH_FXP_FSTAT
private static final byte SSH_FXP_SETSTAT
private static final byte SSH_FXP_FSETSTAT
private static final byte SSH_FXP_OPENDIR
private static final byte SSH_FXP_READDIR
private static final byte SSH_FXP_REMOVE
private static final byte SSH_FXP_MKDIR
private static final byte SSH_FXP_RMDIR
private static final byte SSH_FXP_REALPATH
private static final byte SSH_FXP_STAT
private static final byte SSH_FXP_RENAME
private static final byte SSH_FXP_READLINK
private static final byte SSH_FXP_SYMLINK
private static final byte SSH_FXP_STATUS
private static final byte SSH_FXP_HANDLE
private static final byte SSH_FXP_DATA
private static final byte SSH_FXP_NAME
private static final byte SSH_FXP_ATTRS
private static final byte SSH_FXP_EXTENDED
private static final byte SSH_FXP_EXTENDED_REPLY
private static final int SSH_FXF_READ
private static final int SSH_FXF_WRITE
private static final int SSH_FXF_APPEND
private static final int SSH_FXF_CREAT
private static final int SSH_FXF_TRUNC
private static final int SSH_FXF_EXCL
private static final int SSH_FILEXFER_ATTR_SIZE
private static final int SSH_FILEXFER_ATTR_UIDGID
private static final int SSH_FILEXFER_ATTR_PERMISSIONS
private static final int SSH_FILEXFER_ATTR_ACMODTIME
private static final int SSH_FILEXFER_ATTR_EXTENDED
public static final int SSH_FX_OK
public static final int SSH_FX_EOF
public static final int SSH_FX_NO_SUCH_FILE
public static final int SSH_FX_PERMISSION_DENIED
public static final int SSH_FX_FAILURE
public static final int SSH_FX_BAD_MESSAGE
public static final int SSH_FX_NO_CONNECTION
public static final int SSH_FX_CONNECTION_LOST
public static final int SSH_FX_OP_UNSUPPORTED
private static final int MAX_MSG_LENGTH
public static final int OVERWRITE
public static final int RESUME
public static final int APPEND
private boolean interactive
private int seq
private int[] ackid
private Buffer buf
private Packet packet
private Buffer obuf
private Packet opacket
private int client_version
private int server_version
private java.lang.String version
private java.util.Hashtable extensions
private java.io.InputStream io_in
private boolean extension_posix_rename
private boolean extension_statvfs
private boolean extension_hardlink
private static final java.lang.String file_separator
private static final char file_separatorc
private static boolean fs_is_bs
private java.lang.String cwd
private java.lang.String home
private java.lang.String lcwd
private static final java.lang.String UTF8
private java.lang.String fEncoding
private boolean fEncoding_is_utf8
private ChannelSftp.RequestQueue rq
public void setBulkRequests(int bulk_requests) throws JSchException
bulk_requests
- how many requests may be outstanding at any one time.JSchException
public int getBulkRequests()
public void start() throws JSchException
start
in class Channel
JSchException
public void quit()
public void exit()
public void lcd(java.lang.String path) throws SftpException
SftpException
public void cd(java.lang.String path) throws SftpException
SftpException
public void put(java.lang.String src, java.lang.String dst) throws SftpException
SftpException
public void put(java.lang.String src, java.lang.String dst, int mode) throws SftpException
SftpException
public void put(java.lang.String src, java.lang.String dst, SftpProgressMonitor monitor) throws SftpException
SftpException
public void put(java.lang.String src, java.lang.String dst, SftpProgressMonitor monitor, int mode) throws SftpException
src
file to dst
file.
The mode
should be OVERWRITE
,
RESUME
or APPEND
.src
- source filedst
- destination filemonitor
- progress monitormode
- how data should be added to dstSftpException
public void put(java.io.InputStream src, java.lang.String dst) throws SftpException
SftpException
public void put(java.io.InputStream src, java.lang.String dst, int mode) throws SftpException
SftpException
public void put(java.io.InputStream src, java.lang.String dst, SftpProgressMonitor monitor) throws SftpException
SftpException
public void put(java.io.InputStream src, java.lang.String dst, SftpProgressMonitor monitor, int mode) throws SftpException
src
to dst
file.
The mode
should be OVERWRITE
,
RESUME
or APPEND
.src
- input streamdst
- destination filemonitor
- progress monitormode
- how data should be added to dstSftpException
public void _put(java.io.InputStream src, java.lang.String dst, SftpProgressMonitor monitor, int mode) throws SftpException
SftpException
public java.io.OutputStream put(java.lang.String dst) throws SftpException
SftpException
public java.io.OutputStream put(java.lang.String dst, int mode) throws SftpException
SftpException
public java.io.OutputStream put(java.lang.String dst, SftpProgressMonitor monitor, int mode) throws SftpException
SftpException
public java.io.OutputStream put(java.lang.String dst, SftpProgressMonitor monitor, int mode, long offset) throws SftpException
dst
file.
The mode
should be OVERWRITE
,
RESUME
or APPEND
.dst
- destination filemonitor
- progress monitormode
- how data should be added to dstoffset
- data will be added at offsetSftpException
public void get(java.lang.String src, java.lang.String dst) throws SftpException
SftpException
public void get(java.lang.String src, java.lang.String dst, SftpProgressMonitor monitor) throws SftpException
SftpException
public void get(java.lang.String src, java.lang.String dst, SftpProgressMonitor monitor, int mode) throws SftpException
SftpException
public void get(java.lang.String src, java.io.OutputStream dst) throws SftpException
SftpException
public void get(java.lang.String src, java.io.OutputStream dst, SftpProgressMonitor monitor) throws SftpException
SftpException
public void get(java.lang.String src, java.io.OutputStream dst, SftpProgressMonitor monitor, int mode, long skip) throws SftpException
SftpException
private void _get(java.lang.String src, java.io.OutputStream dst, SftpProgressMonitor monitor, int mode, long skip) throws SftpException
SftpException
public java.io.InputStream get(java.lang.String src) throws SftpException
SftpException
public java.io.InputStream get(java.lang.String src, SftpProgressMonitor monitor) throws SftpException
SftpException
public java.io.InputStream get(java.lang.String src, int mode) throws SftpException
SftpException
public java.io.InputStream get(java.lang.String src, SftpProgressMonitor monitor, int mode) throws SftpException
SftpException
public java.io.InputStream get(java.lang.String src, SftpProgressMonitor monitor, long skip) throws SftpException
SftpException
public java.util.Vector ls(java.lang.String path) throws SftpException
SftpException
public void ls(java.lang.String path, ChannelSftp.LsEntrySelector selector) throws SftpException
path
.
Each files and directories will be passed to
LsEntrySelector#select(LsEntry)
method, and if that method
returns LsEntrySelector#BREAK
, the operation will be
canceled immediately.SftpException
ChannelSftp.LsEntrySelector
public java.lang.String readlink(java.lang.String path) throws SftpException
SftpException
public void symlink(java.lang.String oldpath, java.lang.String newpath) throws SftpException
SftpException
public void hardlink(java.lang.String oldpath, java.lang.String newpath) throws SftpException
SftpException
public void rename(java.lang.String oldpath, java.lang.String newpath) throws SftpException
SftpException
public void rm(java.lang.String path) throws SftpException
SftpException
private boolean isRemoteDir(java.lang.String path)
public void chgrp(int gid, java.lang.String path) throws SftpException
SftpException
public void chown(int uid, java.lang.String path) throws SftpException
SftpException
public void chmod(int permissions, java.lang.String path) throws SftpException
SftpException
public void setMtime(java.lang.String path, int mtime) throws SftpException
SftpException
public void rmdir(java.lang.String path) throws SftpException
SftpException
public void mkdir(java.lang.String path) throws SftpException
SftpException
public SftpATTRS stat(java.lang.String path) throws SftpException
SftpException
private SftpATTRS _stat(byte[] path) throws SftpException
SftpException
private SftpATTRS _stat(java.lang.String path) throws SftpException
SftpException
public SftpStatVFS statVFS(java.lang.String path) throws SftpException
SftpException
private SftpStatVFS _statVFS(byte[] path) throws SftpException
SftpException
private SftpStatVFS _statVFS(java.lang.String path) throws SftpException
SftpException
public SftpATTRS lstat(java.lang.String path) throws SftpException
SftpException
private SftpATTRS _lstat(java.lang.String path) throws SftpException
SftpException
private byte[] _realpath(java.lang.String path) throws SftpException, java.io.IOException, java.lang.Exception
SftpException
java.io.IOException
java.lang.Exception
public void setStat(java.lang.String path, SftpATTRS attr) throws SftpException
SftpException
private void _setStat(java.lang.String path, SftpATTRS attr) throws SftpException
SftpException
public java.lang.String pwd() throws SftpException
SftpException
public java.lang.String lpwd()
public java.lang.String version()
public java.lang.String getHome() throws SftpException
SftpException
private java.lang.String getCwd() throws SftpException
SftpException
private void setCwd(java.lang.String cwd)
private void read(byte[] buf, int s, int l) throws java.io.IOException, SftpException
java.io.IOException
SftpException
private boolean checkStatus(int[] ackid, ChannelSftp.Header header) throws java.io.IOException, SftpException
java.io.IOException
SftpException
private boolean _sendCLOSE(byte[] handle, ChannelSftp.Header header) throws java.lang.Exception
java.lang.Exception
private void sendINIT() throws java.lang.Exception
java.lang.Exception
private void sendREALPATH(byte[] path) throws java.lang.Exception
java.lang.Exception
private void sendSTAT(byte[] path) throws java.lang.Exception
java.lang.Exception
private void sendSTATVFS(byte[] path) throws java.lang.Exception
java.lang.Exception
private void sendLSTAT(byte[] path) throws java.lang.Exception
java.lang.Exception
private void sendFSTAT(byte[] handle) throws java.lang.Exception
java.lang.Exception
private void sendSETSTAT(byte[] path, SftpATTRS attr) throws java.lang.Exception
java.lang.Exception
private void sendREMOVE(byte[] path) throws java.lang.Exception
java.lang.Exception
private void sendMKDIR(byte[] path, SftpATTRS attr) throws java.lang.Exception
java.lang.Exception
private void sendRMDIR(byte[] path) throws java.lang.Exception
java.lang.Exception
private void sendSYMLINK(byte[] p1, byte[] p2) throws java.lang.Exception
java.lang.Exception
private void sendHARDLINK(byte[] p1, byte[] p2) throws java.lang.Exception
java.lang.Exception
private void sendREADLINK(byte[] path) throws java.lang.Exception
java.lang.Exception
private void sendOPENDIR(byte[] path) throws java.lang.Exception
java.lang.Exception
private void sendREADDIR(byte[] path) throws java.lang.Exception
java.lang.Exception
private void sendRENAME(byte[] p1, byte[] p2) throws java.lang.Exception
java.lang.Exception
private void sendCLOSE(byte[] path) throws java.lang.Exception
java.lang.Exception
private void sendOPENR(byte[] path) throws java.lang.Exception
java.lang.Exception
private void sendOPENW(byte[] path) throws java.lang.Exception
java.lang.Exception
private void sendOPENA(byte[] path) throws java.lang.Exception
java.lang.Exception
private void sendOPEN(byte[] path, int mode) throws java.lang.Exception
java.lang.Exception
private void sendPacketPath(byte fxp, byte[] path) throws java.lang.Exception
java.lang.Exception
private void sendPacketPath(byte fxp, byte[] path, java.lang.String extension) throws java.lang.Exception
java.lang.Exception
private void sendPacketPath(byte fxp, byte[] p1, byte[] p2) throws java.lang.Exception
java.lang.Exception
private void sendPacketPath(byte fxp, byte[] p1, byte[] p2, java.lang.String extension) throws java.lang.Exception
java.lang.Exception
private int sendWRITE(byte[] handle, long offset, byte[] data, int start, int length) throws java.lang.Exception
java.lang.Exception
private void sendREAD(byte[] handle, long offset, int length) throws java.lang.Exception
java.lang.Exception
private void sendREAD(byte[] handle, long offset, int length, ChannelSftp.RequestQueue rrq) throws java.lang.Exception
java.lang.Exception
private void putHEAD(Buffer buf, byte type, int length) throws java.lang.Exception
java.lang.Exception
private void putHEAD(byte type, int length) throws java.lang.Exception
java.lang.Exception
private java.util.Vector glob_remote(java.lang.String _path) throws java.lang.Exception
java.lang.Exception
private boolean isPattern(byte[] path)
private java.util.Vector glob_local(java.lang.String _path) throws java.lang.Exception
java.lang.Exception
private void throwStatusError(Buffer buf, int i) throws SftpException
SftpException
private static boolean isLocalAbsolutePath(java.lang.String path)
public void disconnect()
disconnect
in class Channel
private boolean isPattern(java.lang.String path, byte[][] utf8)
private boolean isPattern(java.lang.String path)
private void fill(Buffer buf, int len) throws java.io.IOException
java.io.IOException
private int fill(byte[] buf, int s, int len) throws java.io.IOException
java.io.IOException
private void skip(long foo) throws java.io.IOException
java.io.IOException
private ChannelSftp.Header header(Buffer buf, ChannelSftp.Header header) throws java.io.IOException
java.io.IOException
private java.lang.String remoteAbsolutePath(java.lang.String path) throws SftpException
SftpException
private java.lang.String localAbsolutePath(java.lang.String path)
private java.lang.String isUnique(java.lang.String path) throws SftpException, java.lang.Exception
SftpException
java.lang.Exception
public int getServerVersion() throws SftpException
SftpException
public void setFilenameEncoding(java.lang.String encoding) throws SftpException
SftpException
public java.lang.String getExtension(java.lang.String key)
public java.lang.String realpath(java.lang.String path) throws SftpException
SftpException