FileDocCategorySizeDatePackage
FTPTimestampParser.javaAPI DocApache Commons NET 1.4.1 API1709Sat Dec 03 10:05:48 GMT 2005org.apache.commons.net.ftp.parser

FTPTimestampParser

public interface FTPTimestampParser
This interface specifies the concept of parsing an FTP server's timestamp.
since
1.4

Fields Summary
public static final String
DEFAULT_SDF
the default default date format.
public static final String
DEFAULT_RECENT_SDF
the default recent date format.
Constructors Summary
Methods Summary
public java.util.CalendarparseTimestamp(java.lang.String timestampStr)
Parses the supplied datestamp parameter. This parameter typically would have been pulled from a longer FTP listing via the regular expression mechanism

param
timestampStr - the timestamp portion of the FTP directory listing to be parsed
return
a java.util.Calendar object initialized to the date parsed by the parser
throws
ParseException if none of the parser mechanisms belonging to the implementor can parse the input.