org.apache.commons.net.ftp.parser
Interface FTPTimestampParser
public interface FTPTimestampParser
This interface specifies the concept of parsing an FTP server's
timestamp.
Calendar | parseTimestamp(String timestampStr) - Parses the supplied datestamp parameter.
|
DEFAULT_RECENT_SDF
public static final String DEFAULT_RECENT_SDF
the default recent date format.
DEFAULT_SDF
public static final String DEFAULT_SDF
the default default date format.
parseTimestamp
public Calendar parseTimestamp(String timestampStr)
throws ParseException
Parses the supplied datestamp parameter. This parameter typically would
have been pulled from a longer FTP listing via the regular expression
mechanism
timestampStr
- - the timestamp portion of the FTP directory listing
to be parsed
- a
java.util.Calendar
object initialized to the date
parsed by the parser