public final class FtpClientFactory
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static FTPClient |
createConnection(java.lang.String hostname,
int port,
char[] username,
char[] password,
java.lang.String workingDirectory,
FileSystemOptions fileSystemOptions)
Creates a new connection to the server.
|
public static FTPClient createConnection(java.lang.String hostname,
int port,
char[] username,
char[] password,
java.lang.String workingDirectory,
FileSystemOptions fileSystemOptions)
throws FileSystemException
hostname - The host name of the server.port - The port to connect to.username - The name of the user for authentication.password - The user's password.workingDirectory - The base directory.fileSystemOptions - The FileSystemOptions.FileSystemException - if an error occurs while connecting.