Package | Description |
---|---|
com.maverick.sftp |
The base implementation of the SFTP protocol enabling SFTP to be
operated over both SSH1 and SSH2 connections.
|
com.sshtools.sftp |
This package contains the SSHTools SFTP client converted for use with the J2SSH
Maverick API.
|
Modifier and Type | Method and Description |
---|---|
SftpFile |
SftpSubsystemChannel.getFile(String path)
Utility method to obtain an
SftpFile instance for a given path. |
SftpFile |
SftpFile.getParent()
Get the parent of the current file.
|
SftpFile |
SftpSubsystemChannel.getSingleFileResponse(SftpMessage bar,
String messageName)
Get a single SftpFile object from a message returning SSH_FXP_NAME result.
|
SftpFile |
SftpSubsystemChannel.openDirectory(String path)
Open a directory.
|
SftpFile |
SftpSubsystemChannel.openDirectory(String path,
boolean disableAttributeCheck)
Open a directory.
|
SftpFile |
SftpSubsystemChannel.openFile(String absolutePath,
int flags)
Open a file.
|
SftpFile |
SftpSubsystemChannel.openFile(String absolutePath,
int flags,
SftpFileAttributes attrs)
Open a file.
|
SftpFile |
SftpSubsystemChannel.openFileVersion5(String absolutePath,
int flags,
int accessFlags,
SftpFileAttributes attrs) |
Modifier and Type | Method and Description |
---|---|
void |
SftpSubsystemChannel.changePermissions(SftpFile file,
int permissions)
Change the permissions of a file.
|
void |
SftpSubsystemChannel.closeFile(SftpFile file)
Close a file or directory.
|
String |
SftpSubsystemChannel.getAbsolutePath(SftpFile file)
Get the absolute path of a file.
|
SftpFileAttributes |
SftpSubsystemChannel.getAttributes(SftpFile file)
Get the attributes of a file.
|
int |
SftpSubsystemChannel.listChildren(SftpFile file,
Vector<SftpFile> children)
List the children of a directory.
|
int |
SftpSubsystemChannel.listChildren(SftpFile file,
Vector<SftpFile> children,
boolean disableAttributeCheck) |
void |
SftpSubsystemChannel.setAttributes(SftpFile file,
SftpFileAttributes attrs)
Sets the attributes of a file.
|
Modifier and Type | Method and Description |
---|---|
int |
SftpSubsystemChannel.listChildren(SftpFile file,
Vector<SftpFile> children)
List the children of a directory.
|
int |
SftpSubsystemChannel.listChildren(SftpFile file,
Vector<SftpFile> children,
boolean disableAttributeCheck) |
Constructor and Description |
---|
SftpFileInputStream(SftpFile file) |
SftpFileInputStream(SftpFile file,
long position)
Creates a new SftpFileInputStream object.
|
SftpFileOutputStream(SftpFile file)
Creates a new SftpFileOutputStream object.
|
Modifier and Type | Method and Description |
---|---|
SftpFile[] |
SftpClient.getFiles(String remote)
Download the remote files to the local computer
|
SftpFile[] |
SftpClient.getFiles(String remote,
boolean resume)
Download the remote files to the local computer
|
SftpFile[] |
SftpClient.getFiles(String remote,
FileTransferProgress progress)
Download the remote files to the local computer.
|
SftpFile[] |
SftpClient.getFiles(String remote,
FileTransferProgress progress,
boolean resume)
Download the remote files to the local computer.
|
SftpFile[] |
SftpClient.getFiles(String remote,
String local)
Download the remote files into the local file.
|
SftpFile[] |
SftpClient.getFiles(String remote,
String local,
boolean resume)
Download the remote files into the local file.
|
SftpFile[] |
SftpClient.getFiles(String remote,
String local,
FileTransferProgress progress,
boolean resume)
Download the remote file to the local computer.
|
SftpFile[] |
SftpClient.ls()
Deprecated.
use ls(int maximumFiles) instead.
|
SftpFile[] |
SftpClient.ls(int maximumFiles)
List the contents of the current remote working directory.
|
SftpFile[] |
SftpClient.ls(String path)
Deprecated.
use ls(String path, int maximumFiles) instead.
|
SftpFile[] |
SftpClient.ls(String filter,
boolean regexFilter,
int maximumFiles) |
SftpFile[] |
SftpClient.ls(String path,
int maximumFiles)
List the contents remote directory.
|
SftpFile[] |
SftpClient.ls(String path,
String filter,
boolean regexFilter,
int maximumFiles) |
SftpFile[] |
RegularExpressionMatching.matchFilesWithPattern(SftpFile[] files,
String fileNameRegExp)
returns each of the SftpFiles that match the pattern fileNameRegExp
|
SftpFile[] |
Perl5RegExpMatching.matchFilesWithPattern(SftpFile[] files,
String pattern)
compiles pattern into a regular expression and pattern
matches on each file's name, and returns those that match.
|
SftpFile[] |
NoRegExpMatching.matchFilesWithPattern(SftpFile[] files,
String fileNameRegExp)
returns files
|
SftpFile[] |
GlobRegExpMatching.matchFilesWithPattern(SftpFile[] files,
String pattern)
compiles pattern into a regular expression and pattern
matches on each file's name, and returns those that match.
|
SftpFile[] |
SftpClient.matchRemoteFiles(String remote)
Called by getFileMatches() to do regular expression pattern matching on
the files in 'remote''s parent directory.
|
SftpFile |
SftpClient.openFile(String fileName) |
Modifier and Type | Method and Description |
---|---|
Iterator<SftpFile> |
SftpClient.lsIterator()
Return an iterator for the current working directory.
|
Iterator<SftpFile> |
SftpClient.lsIterator(String path)
Return an iterator for the path provided.
|
Modifier and Type | Method and Description |
---|---|
boolean |
DirectoryOperation.containsFile(SftpFile f)
Determine whether the directory operation contains an SftpFile
|
void |
SftpClient.copyRemoteData(SftpFile sourceFile,
UnsignedInteger64 fromOffset,
UnsignedInteger64 length,
SftpFile destinationFile,
UnsignedInteger64 toOffset) |
static String |
SftpClient.formatLongname(SftpFile file)
Format a String with the details of the file.
|
boolean |
SftpClient.isDirectoryOrLinkedDirectory(SftpFile file)
Determine whether the file object is pointing to a symbolic link that is
pointing to a directory.
|
SftpFile[] |
RegularExpressionMatching.matchFilesWithPattern(SftpFile[] files,
String fileNameRegExp)
returns each of the SftpFiles that match the pattern fileNameRegExp
|
SftpFile[] |
Perl5RegExpMatching.matchFilesWithPattern(SftpFile[] files,
String pattern)
compiles pattern into a regular expression and pattern
matches on each file's name, and returns those that match.
|
SftpFile[] |
NoRegExpMatching.matchFilesWithPattern(SftpFile[] files,
String fileNameRegExp)
returns files
|
SftpFile[] |
GlobRegExpMatching.matchFilesWithPattern(SftpFile[] files,
String pattern)
compiles pattern into a regular expression and pattern
matches on each file's name, and returns those that match.
|
Copyright © 2024. All rights reserved.