Class FtpParser
java.lang.Object
ecmwf.common.ftp.FtpParser
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe Constant DIRECTORY_TYPE.static final intThe Constant FILE_TYPE.static final String[]The Constant REMOTE_OS.static final intThe Constant SYMBOLIC_LINK_TYPE.static final intThe Constant UNKNOWN_TYPE. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidThe main method.static FtpParser.FileEntry[]parseDir(String regexFormat, String systemKey, String defaultDateFormat, String recentDateFormat, String serverLanguageCode, String shortMonthNames, String serverTimeZoneId, String[] filenames) Parses the dir.
-
Field Details
-
REMOTE_OS
The Constant REMOTE_OS. -
FILE_TYPE
public static final int FILE_TYPEThe Constant FILE_TYPE.- See Also:
-
DIRECTORY_TYPE
public static final int DIRECTORY_TYPEThe Constant DIRECTORY_TYPE.- See Also:
-
SYMBOLIC_LINK_TYPE
public static final int SYMBOLIC_LINK_TYPEThe Constant SYMBOLIC_LINK_TYPE.- See Also:
-
UNKNOWN_TYPE
public static final int UNKNOWN_TYPEThe Constant UNKNOWN_TYPE.- See Also:
-
-
Constructor Details
-
FtpParser
public FtpParser()
-
-
Method Details
-
parseDir
public static FtpParser.FileEntry[] parseDir(String regexFormat, String systemKey, String defaultDateFormat, String recentDateFormat, String serverLanguageCode, String shortMonthNames, String serverTimeZoneId, String[] filenames) throws IOException Parses the dir.- Parameters:
regexFormat- the regex formatsystemKey- the system keydefaultDateFormat- the default date formatrecentDateFormat- the recent date formatserverLanguageCode- the server language codeshortMonthNames- the short month namesserverTimeZoneId- the server time zone idfilenames- the filenames- Returns:
- the file entry[]
- Throws:
IOException- Signals that an I/O exception has occurred.
-
main
The main method.- Parameters:
args- the arguments- Throws:
IOException- Signals that an I/O exception has occurred.
-