Modifier and Type | Method and Description |
---|---|
void |
ChannelSftp._put(InputStream src,
String dst,
SftpProgressMonitor monitor,
int mode)
Not for external use.
|
void |
ChannelSftp.cd(String path)
Changes the current remote directory.
|
void |
ChannelSftp.chgrp(int gid,
String path)
Changes the owner group of one or several remote files.
|
void |
ChannelSftp.chmod(int permissions,
String path)
Changes the permissions of one or several remote files.
|
void |
ChannelSftp.chown(int uid,
String path)
Changes the owning user of one or several remote files.
|
InputStream |
ChannelSftp.get(String src)
Starts downloading a file as an InputStream.
|
InputStream |
ChannelSftp.get(String src,
int mode)
Deprecated.
This method will be deleted in the future.
A transfer mode is not meaningful here, as you can't really
overwrite or append an InputStream.
|
void |
ChannelSftp.get(String src,
OutputStream dst)
Downloads a file to an OutputStream.
|
void |
ChannelSftp.get(String src,
OutputStream dst,
SftpProgressMonitor monitor)
Downloads a file to an OutputStream.
|
void |
ChannelSftp.get(String src,
OutputStream dst,
SftpProgressMonitor monitor,
int mode,
long skip)
Downloads a file to an OutputStream.
|
InputStream |
ChannelSftp.get(String src,
SftpProgressMonitor monitor)
Starts downloading a file as an InputStream.
|
InputStream |
ChannelSftp.get(String src,
SftpProgressMonitor monitor,
int mode)
Deprecated.
This method will be deleted in the future.
A transfer mode is not meaningful here, as you can't really
overwrite or append an InputStream.
|
InputStream |
ChannelSftp.get(String src,
SftpProgressMonitor monitor,
long skip)
Starts downloading a file as an InputStream.
|
void |
ChannelSftp.get(String src,
String dst)
Downloads a file.
|
void |
ChannelSftp.get(String src,
String dst,
SftpProgressMonitor monitor)
Downloads a file.
|
void |
ChannelSftp.get(String src,
String dst,
SftpProgressMonitor monitor,
int mode)
Downloads a file.
|
String |
ChannelSftp.getHome()
returns the absolute path of the remote home directory.
|
int |
ChannelSftp.getServerVersion()
returns the server's protocol version number.
|
void |
ChannelSftp.hardlink(String oldpath,
String newpath) |
void |
ChannelSftp.lcd(String path)
Changes the current local directory.
|
Vector |
ChannelSftp.ls(String path)
lists the contents of a remote directory.
|
void |
ChannelSftp.ls(String path,
ChannelSftp.LsEntrySelector selector)
List files specified by the remote
path . |
SftpATTRS |
ChannelSftp.lstat(String path)
Retrieves the file attributes of a file or directory.
|
void |
ChannelSftp.mkdir(String path)
creates a new remote directory.
|
void |
ChannelSftp.put(InputStream src,
String dst)
Uploads a file from an input stream.
|
void |
ChannelSftp.put(InputStream src,
String dst,
int mode)
Uploads a file from an input stream.
|
void |
ChannelSftp.put(InputStream src,
String dst,
SftpProgressMonitor monitor)
Uploads a file from an input stream.
|
void |
ChannelSftp.put(InputStream src,
String dst,
SftpProgressMonitor monitor,
int mode)
Uploads a file from an input stream.
|
OutputStream |
ChannelSftp.put(String dst)
Starts an upload by OutputStream.
|
OutputStream |
ChannelSftp.put(String dst,
int mode)
Starts an upload by OutputStream.
|
OutputStream |
ChannelSftp.put(String dst,
SftpProgressMonitor monitor,
int mode)
Starts an upload by OutputStream.
|
OutputStream |
ChannelSftp.put(String dst,
SftpProgressMonitor monitor,
int mode,
long offset)
Starts an upload by OutputStream.
|
void |
ChannelSftp.put(String src,
String dst)
Uploads a file.
|
void |
ChannelSftp.put(String src,
String dst,
int mode)
Uploads a file.
|
void |
ChannelSftp.put(String src,
String dst,
SftpProgressMonitor monitor)
Uploads a file.
|
void |
ChannelSftp.put(String src,
String dst,
SftpProgressMonitor monitor,
int mode)
Uploads a file.
|
String |
ChannelSftp.pwd()
returns the current remote directory
in absolute form.
|
String |
ChannelSftp.readlink(String path)
reads a symbolic link.
|
String |
ChannelSftp.realpath(String path)
converts a remote path to its absolute (and to a
certain degree canonical) version.
|
void |
ChannelSftp.rename(String oldpath,
String newpath)
Renames a file or directory.
|
void |
ChannelSftp.rm(String path)
removes one or several files.
|
void |
ChannelSftp.rmdir(String path)
Removes one or several remote directories.
|
void |
ChannelSftp.setFilenameEncoding(String encoding)
Sets the encoding used to convert file names from Strings to bytes.
|
void |
ChannelSftp.setMtime(String path,
int mtime)
sets the modification time of one or several remote files.
|
void |
ChannelSftp.setStat(String path,
SftpATTRS attr)
Changes attributes of a remote file or directory.
|
SftpATTRS |
ChannelSftp.stat(String path)
Retrieves the file attributes of a file or directory.
|
com.jcraft.jsch.SftpStatVFS |
ChannelSftp.statVFS(String path) |
void |
ChannelSftp.symlink(String oldpath,
String newpath)
Creates a new symbolic link.
|
This is a simplified version of the inofficial Javadoc created by PaĆlo Ebermann. Have a look at the official homepage.