Com.jscape.inet.ftp jar download




















To download a directory use the downloadDir method. Downloads remote directory and contents from SSH server. Downloads remote directory and contents recursively from SSH server. Uploads file to SSH server. Destination filename should NOT contain any path information. Destination file will be stored relative to current remote directory. If localFile is a directory then directory and entire contents are uploaded.

Uploads a file to SSH server. File name will be uploaded with the extension specified by the argument and after the file has been uploaded, the file is renamed. Destination filename should not contain any path information. Resumes upload of file to SSH server. Uploads are relative to current local directory. Uploads multiple files to SSH server. Uploads multiple files matching filter to SSH server's current directory. Uploads local directory and contents.

Uploads are stored relative to current remote directory. Uploads local directory and contents recursively to SSH server. After invoking this method you must reset the interrupted flag to false before transferring any files. Resets the interrupted flag to false. This method should be invoked if you have interrupted a transfer using the Sftp interrupt method and wish to resume transfering files. Sftp SshParameters parameters Creates a new client instance. Sftp SshParameters parameters, java.

File currentLocalDirectory Creates a new client instance. Sftp SshParameters parameters, SftpConfiguration configuration, int version, java. String remoteFile Cancel the given file transfer thread. String remoteFile. String remoteLinkFile, java. String remoteTargetFile Creates a symbolc link. OutputStream out, java. String localFile, java.

String remotePath Checks if path is valid, i. String regex Gets directory listing from SSH server where file names matches the regular expression. String remoteDirectory, java.

String regex. String remoteFile, long remoteFileOffset. String regex Gets local directory listing. String regex Gets the remote directory content names. String remoteFile, long remoteFileOffset, boolean append. String remotePath Gets real server path. String remoteDirectory Get size of all files rescursively in a given remote directory.

String remoteDirectory Get size of all files recursively in a given remote directory. String remoteDirectory Gets a remote file list fron the current directory. Parameters: receiveBufferSize - Receive buffer size. KeyStore keystore throws FtpException Sets optional server certificate to be used during authentication.

Parameters: keystore - the keystore containing server certificate Throws: FtpException - if an error occurs reading keystore setServerCertificates public void setServerCertificates java. String password throws FtpException Sets optional server certificate to be used during authentication. String storetype throws FtpException Sets optional server certificate to be used during authentication.

Returns: true to shutdown, false otherwise getSystemType public java. Parameters: timeout - the timeout in milliseconds getTimeout public int getTimeout Gets the timeout for opening connection to FTP server.

Parameters: user - the username of FTP user getUsername public java. Default is to use PASV command. Default is false , meaning PASV command will be used.

Default is to use PORT command. Default is false , meaning PORT command will be used. Parameters: encoding - the character encoding to be used getWireEncoding public java. String newPassword throws FtpException Changes the password for current account. Parameters: oldPassword - The old password. String remoteFile throws FtpException Compares checksum of the local and remote files.

Parameters: localfile - local file remoteFile - remote file Returns: true if checksums are equal; false otherwise Throws: FtpException - if an error occurs checksum public boolean checksum byte[] data, java.

String remoteFile throws FtpException Compares checksum of the local data and remote file. Parameters: data - data remoteFile - remote file Returns: true if checksum are equal; false otherwise Throws: FtpException - if an error occurs clearCommandChannel public void clearCommandChannel throws FtpException Clears command channel. Login is made using username, password and optional account. See Also: setUsername java. String , setPassword java. If the directory cannot be deleted because it is not empty the recurse parameter will be used to determine if files and subdirectories within directory should be removed.

AutoCloseable download public void download java. Closure of OutputStream is responsibility of programmer. Downloads are stored relative to current local directory. See Also: setLocalDir java. File download public java. File downloadDir public void downloadDir java.

Parameters: file - interrupt public void interrupt Interrupts the current data transfer and sets interrupted flag to true. After invoking this method you must reset the interrupted flag to false before transferring any files.

See Also: reset interrupted public boolean interrupted Checks if transfer process was interrupted. Returns: true if transfer process was interrupted.

This method should only be used if login is not performed automatically during Ftps connect. Directory is relative to current local directory. Parameters: directoryName - name of directory Returns: the directory See Also: getLocalDir mdelete public void mdelete java. For example, to delete all files with. Enumeration fileNames throws FtpException Downloads specified files in current working remote directory from FTP server to local directory.

Do not use this method to download a directory, see downloadDir String method instead. File , downloadDir String mdownload public void mdownload java. String filter throws FtpException Downloads multiple files matching regular expression from FTP server's current directory. For example to download all files ending with extension. File , downloadDir java. String mupload public void mupload java.

File mupload public void mupload java. String filter throws FtpException Uploads multiple files matching regular expression to FTP server's current directory. For example, to upload all files with extension. File noop public java. This is useful in helping to prevent a lost connection due to inactivity. Normally this method should not be invoked as this is done automatically.

This should be used only in cases where manual reading of response is necessary. This method should be invoked if you have interrupted a transfer using the Ftps interrupt method and wish to resume transfering files.

See Also: interrupt resumeDownload public java. If localFile is a directory then directory and entire contents are uploaded. File localFile throws FtpException Uploads file to FTP server using temporary extension, then renames file back to original name once uploaded. File upload public void upload java. File upload public void upload byte[] data, java.

Uploads are stored relative to current remote directory. Parameters: directory - - the remote directory name Returns: size of files. String fileName throws FtpException Uploads the file which is created in the current directory under a name unique to that directory. String fileName, boolean useFilenameAsSeed throws FtpException Uploads the file which is created in the current directory under a name unique to that directory.

File file throws FtpException Uploads the file which is created in the current directory under a name unique to that directory. File file, boolean useFilenameAsSeed throws FtpException Uploads the file which is created in the current directory under a name unique to that directory. Parameters: in - data input stream. File localFile throws FtpException Returns local checksum. Parameters: localFile - the file used to calculate local checksum Returns: local file checksum Throws: FtpException - if an error occurs getRemoteFileChecksum public java.

String remoteFile throws FtpException Returns remote file checksum. Parameters: remoteFile - remote file Returns: remote file checksum. String remoteDir throws FtpException Gets all the remote files from the current directory and subdirectories. Parameters: remoteDir - The current remote will be consulted Returns: A collection of file paths.

Throws: FtpException - If an error occurs getAccount public java. This should not be confused with username. All Rights Reserved. Skip navigation links. Object com. Ftps All Implemented Interfaces: java. AutoCloseable public class Ftps extends java. Object implements java. Gets whether connection will be established before sending data transfer command. Gets the data port start range for incoming non-passive active data connections. Gets directory listing from FTP server returning only file and directory names that match the regular expression.

Gets whether an exception should be thrown when downloading a file and server does not support SIZE command. Interrupts the current data transfer and sets interrupted flag to true. Looks for the command argument into the server features list to validate if it is supported.

Downloads specified files in current working remote directory from FTP server to local directory. Downloads multiple files matching regular expression from FTP server's current directory. Uploads multiple files to FTP server Uploads are performed relative to current local directory. Uploads multiple files matching regular expression to FTP server's current directory. Replaced by setDataPortRange. Sets whether an exception should be thrown when downloading a file and server does not support SIZE command.

Sets the external address to use when using active connections using the PORT command. Set upload modification time, replaces the last modified timestamp with that of the local file after upload is complete. Sets the username and password to use when for authentication with proxy server. Uploads file to FTP server using temporary extension, then renames file back to original name once uploaded. Uploads the file which is created in the current directory under a name unique to that directory. Sets the proxy hostname and port for this FTPS connection.

Sets data transfer mode to automatic detect. Sets data transfer mode to binary. Sets block size for use in transferring files. Sets character set used when issuing commands and transferring files. Gets whether the data is compressed during the transfering. Sets optional client certificate to be used during authentication. Checks if client is connected to FTP server. Sets the connection type. Returns the current connection type. Gets provider used for TLS protocol in default context.

Sets algorithm used for SSL communications in default context. Gets algorithm used for SSL communications in default context. Sets debugging state. Sets PrintStream used in reporting debug statements.

Gets PrintStream used in reporting debug statements. Gets file listing of files matching filter criteria. Gets directory listing from FTP server. Gets raw directory listing of files matching filter criteria. Sets the file modification time with a new value. Sets file creation time with a new value. Sets local directory to be used in FTP session. Gets local directory to be used in FTP session. Our experts will show you around, answer your questions and get you set up with a free, no-obligation trial of JSCAPE.

Get A Demo. Automate Transfer Workflows Accelerate your file transfers with our web-based workflow automation that centralizes all transfers for easier administration. Easily Manage Clients Avoid complex installations and empower self-service across the enterprise for user registration, key management and more. Leverage High-Availability Get consistent performance without heavy administrative demand using a centralized configuration datastore and shared storage.

MFT Server Cross-platform, universal protocol server with easy administration, hybrid deployment support, and unparalleled flexibility and reliability MFT Gateway Easily add proxy servers in your DMZ in support of all your organization's compliance needs MFT Monitor Perform load testing and network scanning to ensure service levels will be met even during heavy system load.

Industry-Leading Security. What Real Users Are Saying. Service Delivery Manager.



0コメント

  • 1000 / 1000