|
FTP Client | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.amoebacode.ftp.FTPUtil
FTPUtil provides static utility methods for the FTPClient and FTPSocket.
| Field Summary | |
private static java.lang.String |
CURRENT_RELATIVE_DIRECTORY
The current relative directory filename |
private static java.lang.String |
IP_SEPARATOR
A period (the IP address value delimiter) |
private static java.lang.String |
QUOTE
A quotation mark |
private static java.lang.String |
UP_RELATIVE_DIRECTORY
The up relative directory filename |
| Constructor Summary | |
(package private) |
FTPUtil()
|
| Method Summary | |
protected static java.lang.String |
getIPAddress(java.lang.String[] parts)
Constructs an IP address from the specified String array of numbers. |
protected static int |
getPort(java.lang.String[] parts)
Determines the port from the specified String array of numbers. |
protected static java.lang.String[] |
getStringArray(java.util.StringTokenizer st)
Returns a String array comprised of the elements of the specified StringTokenizer. |
protected static boolean |
isFTPResponse(java.lang.String response)
Indicates whether the specified line is a proper FTP server response. |
protected static boolean |
isRelativePath(java.lang.String fileName)
Indicates whether the specified file name is a relative path filename. |
protected static java.lang.String |
removeSurroundingQuotes(java.lang.String text)
Returns surrounding quotation marks (when present) from the specified text. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final java.lang.String QUOTE
private static final java.lang.String UP_RELATIVE_DIRECTORY
private static final java.lang.String CURRENT_RELATIVE_DIRECTORY
private static final java.lang.String IP_SEPARATOR
| Constructor Detail |
FTPUtil()
| Method Detail |
protected static boolean isRelativePath(java.lang.String fileName)
fileName - the file name to compare
protected static java.lang.String removeSurroundingQuotes(java.lang.String text)
text - the String with surrounding quotation marks
protected static java.lang.String[] getStringArray(java.util.StringTokenizer st)
st - the StringTokenizer containing the results of the data command
protected static java.lang.String getIPAddress(java.lang.String[] parts)
protected static int getPort(java.lang.String[] parts)
protected static boolean isFTPResponse(java.lang.String response)
response - a line received from the FTP server
|
FTP Client | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||