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