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, xforwadingclose, 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, setXForwardingaddRemoteWindowSize, 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, writeprivate 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.JSchExceptionpublic int getBulkRequests()
public void start()
throws JSchException
start in class ChannelJSchExceptionpublic void quit()
public void exit()
public void lcd(java.lang.String path)
throws SftpException
SftpExceptionpublic void cd(java.lang.String path)
throws SftpException
SftpExceptionpublic void put(java.lang.String src,
java.lang.String dst)
throws SftpException
SftpExceptionpublic void put(java.lang.String src,
java.lang.String dst,
int mode)
throws SftpException
SftpExceptionpublic void put(java.lang.String src,
java.lang.String dst,
SftpProgressMonitor monitor)
throws SftpException
SftpExceptionpublic 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 dstSftpExceptionpublic void put(java.io.InputStream src,
java.lang.String dst)
throws SftpException
SftpExceptionpublic void put(java.io.InputStream src,
java.lang.String dst,
int mode)
throws SftpException
SftpExceptionpublic void put(java.io.InputStream src,
java.lang.String dst,
SftpProgressMonitor monitor)
throws SftpException
SftpExceptionpublic 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 dstSftpExceptionpublic void _put(java.io.InputStream src,
java.lang.String dst,
SftpProgressMonitor monitor,
int mode)
throws SftpException
SftpExceptionpublic java.io.OutputStream put(java.lang.String dst)
throws SftpException
SftpExceptionpublic java.io.OutputStream put(java.lang.String dst,
int mode)
throws SftpException
SftpExceptionpublic java.io.OutputStream put(java.lang.String dst,
SftpProgressMonitor monitor,
int mode)
throws SftpException
SftpExceptionpublic 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 offsetSftpExceptionpublic void get(java.lang.String src,
java.lang.String dst)
throws SftpException
SftpExceptionpublic void get(java.lang.String src,
java.lang.String dst,
SftpProgressMonitor monitor)
throws SftpException
SftpExceptionpublic void get(java.lang.String src,
java.lang.String dst,
SftpProgressMonitor monitor,
int mode)
throws SftpException
SftpExceptionpublic void get(java.lang.String src,
java.io.OutputStream dst)
throws SftpException
SftpExceptionpublic void get(java.lang.String src,
java.io.OutputStream dst,
SftpProgressMonitor monitor)
throws SftpException
SftpExceptionpublic void get(java.lang.String src,
java.io.OutputStream dst,
SftpProgressMonitor monitor,
int mode,
long skip)
throws SftpException
SftpExceptionprivate void _get(java.lang.String src,
java.io.OutputStream dst,
SftpProgressMonitor monitor,
int mode,
long skip)
throws SftpException
SftpExceptionpublic java.io.InputStream get(java.lang.String src)
throws SftpException
SftpExceptionpublic java.io.InputStream get(java.lang.String src,
SftpProgressMonitor monitor)
throws SftpException
SftpExceptionpublic java.io.InputStream get(java.lang.String src,
int mode)
throws SftpException
SftpExceptionpublic java.io.InputStream get(java.lang.String src,
SftpProgressMonitor monitor,
int mode)
throws SftpException
SftpExceptionpublic java.io.InputStream get(java.lang.String src,
SftpProgressMonitor monitor,
long skip)
throws SftpException
SftpExceptionpublic java.util.Vector ls(java.lang.String path)
throws SftpException
SftpExceptionpublic 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.SftpExceptionChannelSftp.LsEntrySelectorpublic java.lang.String readlink(java.lang.String path)
throws SftpException
SftpExceptionpublic void symlink(java.lang.String oldpath,
java.lang.String newpath)
throws SftpException
SftpExceptionpublic void hardlink(java.lang.String oldpath,
java.lang.String newpath)
throws SftpException
SftpExceptionpublic void rename(java.lang.String oldpath,
java.lang.String newpath)
throws SftpException
SftpExceptionpublic void rm(java.lang.String path)
throws SftpException
SftpExceptionprivate boolean isRemoteDir(java.lang.String path)
public void chgrp(int gid,
java.lang.String path)
throws SftpException
SftpExceptionpublic void chown(int uid,
java.lang.String path)
throws SftpException
SftpExceptionpublic void chmod(int permissions,
java.lang.String path)
throws SftpException
SftpExceptionpublic void setMtime(java.lang.String path,
int mtime)
throws SftpException
SftpExceptionpublic void rmdir(java.lang.String path)
throws SftpException
SftpExceptionpublic void mkdir(java.lang.String path)
throws SftpException
SftpExceptionpublic SftpATTRS stat(java.lang.String path) throws SftpException
SftpExceptionprivate SftpATTRS _stat(byte[] path) throws SftpException
SftpExceptionprivate SftpATTRS _stat(java.lang.String path) throws SftpException
SftpExceptionpublic SftpStatVFS statVFS(java.lang.String path) throws SftpException
SftpExceptionprivate SftpStatVFS _statVFS(byte[] path) throws SftpException
SftpExceptionprivate SftpStatVFS _statVFS(java.lang.String path) throws SftpException
SftpExceptionpublic SftpATTRS lstat(java.lang.String path) throws SftpException
SftpExceptionprivate SftpATTRS _lstat(java.lang.String path) throws SftpException
SftpExceptionprivate byte[] _realpath(java.lang.String path)
throws SftpException,
java.io.IOException,
java.lang.Exception
SftpExceptionjava.io.IOExceptionjava.lang.Exceptionpublic void setStat(java.lang.String path,
SftpATTRS attr)
throws SftpException
SftpExceptionprivate void _setStat(java.lang.String path,
SftpATTRS attr)
throws SftpException
SftpExceptionpublic java.lang.String pwd()
throws SftpException
SftpExceptionpublic java.lang.String lpwd()
public java.lang.String version()
public java.lang.String getHome()
throws SftpException
SftpExceptionprivate java.lang.String getCwd()
throws SftpException
SftpExceptionprivate void setCwd(java.lang.String cwd)
private void read(byte[] buf,
int s,
int l)
throws java.io.IOException,
SftpException
java.io.IOExceptionSftpExceptionprivate boolean checkStatus(int[] ackid,
ChannelSftp.Header header)
throws java.io.IOException,
SftpException
java.io.IOExceptionSftpExceptionprivate boolean _sendCLOSE(byte[] handle,
ChannelSftp.Header header)
throws java.lang.Exception
java.lang.Exceptionprivate void sendINIT()
throws java.lang.Exception
java.lang.Exceptionprivate void sendREALPATH(byte[] path)
throws java.lang.Exception
java.lang.Exceptionprivate void sendSTAT(byte[] path)
throws java.lang.Exception
java.lang.Exceptionprivate void sendSTATVFS(byte[] path)
throws java.lang.Exception
java.lang.Exceptionprivate void sendLSTAT(byte[] path)
throws java.lang.Exception
java.lang.Exceptionprivate void sendFSTAT(byte[] handle)
throws java.lang.Exception
java.lang.Exceptionprivate void sendSETSTAT(byte[] path,
SftpATTRS attr)
throws java.lang.Exception
java.lang.Exceptionprivate void sendREMOVE(byte[] path)
throws java.lang.Exception
java.lang.Exceptionprivate void sendMKDIR(byte[] path,
SftpATTRS attr)
throws java.lang.Exception
java.lang.Exceptionprivate void sendRMDIR(byte[] path)
throws java.lang.Exception
java.lang.Exceptionprivate void sendSYMLINK(byte[] p1,
byte[] p2)
throws java.lang.Exception
java.lang.Exceptionprivate void sendHARDLINK(byte[] p1,
byte[] p2)
throws java.lang.Exception
java.lang.Exceptionprivate void sendREADLINK(byte[] path)
throws java.lang.Exception
java.lang.Exceptionprivate void sendOPENDIR(byte[] path)
throws java.lang.Exception
java.lang.Exceptionprivate void sendREADDIR(byte[] path)
throws java.lang.Exception
java.lang.Exceptionprivate void sendRENAME(byte[] p1,
byte[] p2)
throws java.lang.Exception
java.lang.Exceptionprivate void sendCLOSE(byte[] path)
throws java.lang.Exception
java.lang.Exceptionprivate void sendOPENR(byte[] path)
throws java.lang.Exception
java.lang.Exceptionprivate void sendOPENW(byte[] path)
throws java.lang.Exception
java.lang.Exceptionprivate void sendOPENA(byte[] path)
throws java.lang.Exception
java.lang.Exceptionprivate void sendOPEN(byte[] path,
int mode)
throws java.lang.Exception
java.lang.Exceptionprivate void sendPacketPath(byte fxp,
byte[] path)
throws java.lang.Exception
java.lang.Exceptionprivate void sendPacketPath(byte fxp,
byte[] path,
java.lang.String extension)
throws java.lang.Exception
java.lang.Exceptionprivate void sendPacketPath(byte fxp,
byte[] p1,
byte[] p2)
throws java.lang.Exception
java.lang.Exceptionprivate void sendPacketPath(byte fxp,
byte[] p1,
byte[] p2,
java.lang.String extension)
throws java.lang.Exception
java.lang.Exceptionprivate int sendWRITE(byte[] handle,
long offset,
byte[] data,
int start,
int length)
throws java.lang.Exception
java.lang.Exceptionprivate void sendREAD(byte[] handle,
long offset,
int length)
throws java.lang.Exception
java.lang.Exceptionprivate void sendREAD(byte[] handle,
long offset,
int length,
ChannelSftp.RequestQueue rrq)
throws java.lang.Exception
java.lang.Exceptionprivate void putHEAD(Buffer buf, byte type, int length) throws java.lang.Exception
java.lang.Exceptionprivate void putHEAD(byte type,
int length)
throws java.lang.Exception
java.lang.Exceptionprivate java.util.Vector glob_remote(java.lang.String _path)
throws java.lang.Exception
java.lang.Exceptionprivate boolean isPattern(byte[] path)
private java.util.Vector glob_local(java.lang.String _path)
throws java.lang.Exception
java.lang.Exceptionprivate void throwStatusError(Buffer buf, int i) throws SftpException
SftpExceptionprivate static boolean isLocalAbsolutePath(java.lang.String path)
public void disconnect()
disconnect in class Channelprivate 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.IOExceptionprivate int fill(byte[] buf,
int s,
int len)
throws java.io.IOException
java.io.IOExceptionprivate void skip(long foo)
throws java.io.IOException
java.io.IOExceptionprivate ChannelSftp.Header header(Buffer buf, ChannelSftp.Header header) throws java.io.IOException
java.io.IOExceptionprivate java.lang.String remoteAbsolutePath(java.lang.String path)
throws SftpException
SftpExceptionprivate java.lang.String localAbsolutePath(java.lang.String path)
private java.lang.String isUnique(java.lang.String path)
throws SftpException,
java.lang.Exception
SftpExceptionjava.lang.Exceptionpublic int getServerVersion()
throws SftpException
SftpExceptionpublic void setFilenameEncoding(java.lang.String encoding)
throws SftpException
SftpExceptionpublic java.lang.String getExtension(java.lang.String key)
public java.lang.String realpath(java.lang.String path)
throws SftpException
SftpException