|
Secure FTP Factory | ||||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||||
| Packages that use SftpException | |
| com.jscape.inet.sftp | Contains client classes for communicating with a server using SFTP protocol (FTP over SSH) |
| Uses of SftpException in com.jscape.inet.sftp |
| Subclasses of SftpException in com.jscape.inet.sftp | |
class |
SftpAuthenticationException
Exception thrown when trying to create or access a resource with insufficient permissions. |
class |
SftpFileNotFoundException
Exception is thrown when attempting to retrieve a file from server that does not exist. |
class |
SftpPermissionDeniedException
Exception thrown when trying to create or access a resource with insufficient permissions. |
| Methods in com.jscape.inet.sftp that throw SftpException | |
void |
Sftp.connect()
Establishes secure connection with SSH server. |
void |
Sftp.setDir(java.lang.String remoteDirectory)
Sets current directory on SSH server. |
void |
Sftp.setDirUp()
Sets current directory on SSH server to parent directory. |
java.util.Enumeration |
Sftp.getDirListing()
Gets directory listing from SSH server. |
java.util.Enumeration |
Sftp.getDirListing(java.lang.String regex)
Gets directory listing from SSH server where file names matches the regular expression. |
java.lang.String |
Sftp.getDirListingAsString()
Gets directory listing of files on SSH server. |
java.lang.String |
Sftp.getDirListingAsString(java.lang.String regex)
Gets directory listing from SSH server where file names matches the regular expression. |
java.util.Enumeration |
Sftp.getNameListing()
Gets directory listing of files on SSH server. |
java.util.Enumeration |
Sftp.getNameListing(java.lang.String regex)
Gets the remote directory content names. |
void |
Sftp.makeDir(java.lang.String newDirectory)
Makes directory on SSH server. |
void |
Sftp.makeDirRecursive(java.lang.String newDirectory)
Makes directory on SSH server, creating subdirectories if necessary. |
void |
Sftp.deleteDir(java.lang.String remoteDirectory)
Deletes directory from SSH server. |
void |
Sftp.deleteDir(java.lang.String remoteDirectory,
boolean recurse)
Deletes directory from SSH server recursively. |
boolean |
Sftp.isDirectory(java.lang.String remotePath)
Checks if remote pathname denotes a directory. |
int |
Sftp.getFilePermissions(java.lang.String remoteFile)
Gets remote file permissions in UNIX chmod format (644, 777). |
void |
Sftp.setFilePermissions(java.lang.String remoteFile,
int permissions)
Sets file permissions. |
java.util.Date |
Sftp.getFileTimestamp(java.lang.String remoteFile)
Gets date/timestamp of remote file from SSH server. |
long |
Sftp.getFilesize(java.lang.String remoteFile)
Gets filesize of remote file from SSH server. |
java.io.InputStream |
Sftp.getInputStream(java.lang.String filename,
long offset)
Gets an InputStream from SSH server for the purposes of downloading a file. |
java.io.OutputStream |
Sftp.getOutputStream(java.lang.String filename,
long offset,
boolean append)
Gets an OutputStream from SSH server for the purposes of uploading a file. |
void |
Sftp.deleteFile(java.lang.String remoteFile)
Deletes file from SSH server. |
void |
Sftp.mdelete(java.lang.String regex)
Deletes multiple files matching regular expression from SSH server's current directory. |
void |
Sftp.renameFile(java.lang.String remoteFile,
java.lang.String newFile)
Renames remote file on SSH server. |
java.lang.String |
Sftp.getRealPath(java.lang.String path)
Gets real server path. |
boolean |
Sftp.isValidPath(java.lang.String path)
Checks if path is valid, i.e. |
java.io.File |
Sftp.download(java.lang.String remoteFile)
Downloads file from SSH server. |
java.io.File |
Sftp.download(java.lang.String localFile,
java.lang.String remoteFile)
Downloads the file from SSH server. |
void |
Sftp.download(java.io.OutputStream out,
java.lang.String remoteFile)
Downloads file from SSH server and writes to specified OutputStream. |
java.io.File |
Sftp.resumeDownload(java.lang.String remoteFile,
long off)
Resumes download of file from SSH server. |
java.io.File |
Sftp.resumeDownload(java.lang.String localFile,
java.lang.String remoteFile,
long off)
Resumes download of file from SSH server. |
void |
Sftp.downloadDir(java.lang.String remoteDirectory)
Downloads remote directory and contents recursively from SSH server. |
void |
Sftp.downloadDir(java.lang.String remoteDir,
int retryLimit)
Downloads remote directory and contents from SSH server. |
void |
Sftp.mdownload(java.util.Enumeration fileNames)
Downloads specified files in current working remote directory from SSH server to local directory. |
void |
Sftp.mdownload(java.lang.String regex)
Downloads multiple files matching filter from SSH server's current directory. |
void |
Sftp.upload(byte[] data,
java.lang.String remoteFile)
Uploads file to SSH server where contents of file is not on disk but in memory. |
void |
Sftp.upload(java.io.InputStream input,
java.lang.String remoteFile,
boolean append)
Uploads file to SSH server. |
void |
Sftp.upload(java.io.InputStream input,
java.lang.String remoteFile)
Uploads file to SSH server. |
void |
Sftp.upload(byte[] data,
java.lang.String remoteFile,
boolean append)
Uploads file to SSH server where contents of file is not on disk but in memory. |
void |
Sftp.upload(java.io.File localFile)
Uploads file to SSH server. |
void |
Sftp.upload(java.lang.String extension,
java.io.File localFile)
Uploads a file to SSH server. |
void |
Sftp.upload(java.io.File localFile,
boolean append)
Uploads file to SSH server. |
void |
Sftp.upload(java.io.File localFile,
java.lang.String remoteFile)
Uploads file to SSH server. |
void |
Sftp.upload(java.io.File localFile,
java.lang.String remoteFile,
boolean append)
Uploads file to SSH server. |
void |
Sftp.upload(java.lang.String localFile)
Uploads file to SSH server. |
void |
Sftp.upload(java.lang.String localFile,
boolean append)
Uploads file to SSH server. |
void |
Sftp.upload(java.lang.String localFile,
java.lang.String remoteFile)
Uploads file to SSH server. |
void |
Sftp.upload(java.lang.String localFile,
java.lang.String remoteFile,
boolean append)
Uploads file to SSH server. |
void |
Sftp.resumeUpload(java.io.File localFile,
long off)
Resumes upload of file to SSH server. |
void |
Sftp.resumeUpload(java.io.File localFile,
java.lang.String remoteFile,
long off)
Resumes upload of file to SSH server. |
void |
Sftp.resumeUpload(java.lang.String localFile,
long off)
Resumes upload of file to SSH server. |
void |
Sftp.resumeUpload(java.lang.String localFile,
java.lang.String remoteFile,
long off)
Resumes upload of file to SSH server. |
void |
Sftp.uploadDir(java.io.File localDirectory)
Uploads local directory and contents recursively to SSH server. |
void |
Sftp.uploadDir(java.io.File localDir,
int retryLimit)
Uploads local directory and contents. |
void |
Sftp.uploadDir(java.io.File localDir,
int retryLimit,
java.lang.String extension)
Uploads local directory and contents. |
void |
Sftp.uploadDir(java.io.File localDirectory,
java.lang.String remoteDirName,
java.lang.String extension)
Uploads local directory and contents recursively to SSH server. |
void |
Sftp.mupload(java.util.Enumeration fileNames)
Uploads multiple files to SSH server. |
void |
Sftp.mupload(java.lang.String regex)
Uploads multiple files matching filter to SSH server's current directory. |
JFileType |
SftpFile.getType()
Returns the POSIX file type represented by this abstract pathname. |
boolean |
SftpFile.isDirectory()
Tests whether the file denoted by this abstract pathname is a directory. |
long |
SftpFile.getFilesize()
Returns the size of the file denoted by this abstract pathname. |
java.lang.String |
SftpFile.getOwner()
Returns the owner name for this abstract pathname as string. |
void |
SftpFile.setOwner(java.lang.String uid)
Setups the new file user ID. |
java.lang.String |
SftpFile.getGroup()
Returns the owner group name for this abstract pathname as string. |
void |
SftpFile.setGroup(java.lang.String gid)
Setups the new file owner group ID. |
JFilePermissions |
SftpFile.getPermissions()
Returns the POSIX file permissions for this abstract pathname. |
java.lang.String |
SftpFile.getPermission()
Returns POSIX string representation of the file permissions. |
void |
SftpFile.setPermissions(JFilePermissions permissions)
Setups the new file permissions. |
long |
SftpFile.getAccessTime()
Returns the file access time as seconds from Jan 1, 1970 in UTC. |
long |
SftpFile.getAccessTimeNsec()
Returns the additional file access time nano-seconds. |
long |
SftpFile.getCreationTime()
Returns the file creation time as seconds from Jan 1, 1970 in UTC. |
long |
SftpFile.getCreationTimeNsec()
Returns the additional file creation time nano-seconds. |
long |
SftpFile.getModificationTime()
Returns the file modification time as seconds from Jan 1, 1970 in UTC. |
long |
SftpFile.getModificationTimeNsec()
Returns the additional file modification time nano-seconds. |
java.util.Date |
SftpFile.getDate()
Returns the file modification date as Data object. |
java.lang.String |
SftpFile.getTime()
Returns the file modification time as String. |
JAcl[] |
SftpFile.getAcl()
Obtains the file ACL array similar to that defined in section 5.9 of NFS version 4 Protocol |
void |
SftpFile.setAcl(JAcl[] acls)
Setups the file ACL's. |
boolean |
SftpFile.isReadOnly()
Tests whether the file named by this abstract pathname is not writable. |
boolean |
SftpFile.isSystem()
Tests whether the file named by this abstract pathname is part of operating system. |
boolean |
SftpFile.isHidden()
Tests whether the file named by this abstract pathname is a hidden file. |
boolean |
SftpFile.isCaseInsensitive()
This attribute can only apply to directories. |
boolean |
SftpFile.isArchive()
Tests whether the file named by this abstract pathname should be included in backup / archive operations. |
void |
SftpFile.setArchive(boolean archive)
Setups archive attribute for this file. |
boolean |
SftpFile.isEncrypted()
Tests whether the file named by this abstract pathname is encrypted. |
boolean |
SftpFile.isCompressed()
Tests whether the file named by this abstract pathname is compressed. |
boolean |
SftpFile.isSparse()
Tests whether the file named by this abstract pathname is sparse. |
boolean |
SftpFile.isAppendOnly()
Tests whether the file named by this abstract pathname can only be opened for writing in append mode. |
boolean |
SftpFile.isImmutable()
Tests whether the file named by this abstract pathname cannot be deleted or renamed, no hard link can be created to this file and no data can be written to the file. |
void |
SftpFile.setImmutable(boolean immutable)
Setups file immutability. |
boolean |
SftpFile.isSync()
Tests whether the file named by this abstract pathname when is modified, the changes are written synchronously to the disk. |
void |
SftpFile.setSync(boolean sync)
Setups file changes synchronization mode. |
boolean |
SftpFile.exists()
Tests whether the file denoted by this abstract pathname exists. |
void |
SftpFile.createNewFile()
Creates a new, empty file named by this abstract pathname if and only if a file with this name does not yet exist. |
void |
SftpFile.createNewDirectory()
Creates the directory named by this abstract pathname if and only if a file with this name does not yet exist. |
void |
SftpFile.createNewLink(JFile target)
Creates the symbolic link named by this abstract pathname if and only if a file with this name does not yet exist. |
void |
SftpFile.renameTo(JFile dest)
Renames the file denoted by this abstract pathname. |
void |
SftpFile.delete()
Deletes the file or directory denoted by this abstract pathname. |
void |
SftpFile.deleteRecursive()
Recursively deletes the file or directory denoted by this abstract pathname. |
JFile[] |
SftpFile.listFiles()
Returns an array of abstract pathnames denoting the files in the directory denoted by this abstract pathname. |
JFile[] |
SftpFile.listFiles(com.jscape.inet.file.JFileFilter filter)
Returns an array of abstract pathnames denoting the files and directories in the directory denoted by this abstract pathname that satisfy the specified filter. |
JFile |
SftpFile.getLinkTarget()
Returns the link target if the current file is symbolic link. |
JRandomAccessFile |
SftpFile.getRandomAccessFile(com.jscape.inet.file.JFileOpenFlags openFlags,
JAcl.Mask accessType)
Provides access to the file contents returning a new JRandomAccessFile instance. |
|
Secure FTP Factory | ||||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||||