Interface FTPTimestampParser
-
- All Known Implementing Classes:
FTPTimestampParserImpl
public interface FTPTimestampParserThis interface specifies the concept of parsing an FTP server's timestamp.- Since:
- 1.4
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_RECENT_SDFthe default recent date format.static java.lang.StringDEFAULT_SDFthe default default date format.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.CalendarparseTimestamp(java.lang.String timestampStr)Parses the supplied datestamp parameter.
-
-
-
Field Detail
-
DEFAULT_SDF
static final java.lang.String DEFAULT_SDF
the default default date format.- See Also:
- Constant Field Values
-
DEFAULT_RECENT_SDF
static final java.lang.String DEFAULT_RECENT_SDF
the default recent date format.- See Also:
- Constant Field Values
-
-
Method Detail
-
parseTimestamp
java.util.Calendar parseTimestamp(java.lang.String timestampStr) throws java.text.ParseExceptionParses the supplied datestamp parameter. This parameter typically would have been pulled from a longer FTP listing via the regular expression mechanism- Parameters:
timestampStr- - the timestamp portion of the FTP directory listing to be parsed- Returns:
- a
java.util.Calendarobject initialized to the date parsed by the parser - Throws:
java.text.ParseException- if none of the parser mechanisms belonging to the implementor can parse the input.
-
-