public class FTPUtils
extends java.lang.Object
| Constructor and Description |
|---|
FTPUtils() |
| Modifier and Type | Method and Description |
|---|---|
static FTPClient |
connect(java.lang.String host,
java.lang.String userInfo,
UserPasswordInput userPasswordInput)
Connect to an FTP server
|
static long |
getContentLength(java.net.URL url) |
static boolean |
resourceAvailable(java.net.URL url) |
public static boolean resourceAvailable(java.net.URL url)
public static long getContentLength(java.net.URL url)
throws java.io.IOException
java.io.IOExceptionpublic static FTPClient connect(java.lang.String host, java.lang.String userInfo, UserPasswordInput userPasswordInput) throws java.io.IOException
host - userInfo - userPasswordInput - Dialog with which a user can enter credentials, if login failsjava.io.IOException