public class FtpUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
private static String |
ANONYMOUS
Anonymous user.
|
private static String |
PASSWORD
Password to send as anonymous.
|
| Constructor and Description |
|---|
FtpUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
asciiCopy(URL ftp,
File local,
boolean passive) |
static boolean |
asciiCopy(URL ftp,
File local,
boolean passive,
PasswordAuthentication notanonymous) |
static boolean |
binaryCopy(URL ftp,
File local,
boolean passive,
PasswordAuthentication notanonymous) |
private static boolean |
ftpCopy(URL ftp,
File local,
int type,
boolean passive,
PasswordAuthentication notanonymous) |
private static final String ANONYMOUS
private static final String PASSWORD
public static boolean asciiCopy(URL ftp, File local, boolean passive) throws SocketException, IOException
SocketExceptionIOExceptionpublic static boolean asciiCopy(URL ftp, File local, boolean passive, PasswordAuthentication notanonymous) throws SocketException, IOException
SocketExceptionIOExceptionpublic static boolean binaryCopy(URL ftp, File local, boolean passive, PasswordAuthentication notanonymous) throws SocketException, IOException
SocketExceptionIOExceptionprivate static boolean ftpCopy(URL ftp, File local, int type, boolean passive, PasswordAuthentication notanonymous) throws SocketException, IOException
SocketExceptionIOException