org.apache.commons.net.ftp.parser
public abstract class ConfigurableFTPFileEntryParserImpl extends RegexFTPFileEntryParserImpl implements Configurable
Constructor Summary | |
---|---|
ConfigurableFTPFileEntryParserImpl(String regex)
Only constructor for this absract class. |
Method Summary | |
---|---|
void | configure(FTPClientConfig config)
Implementation of the {@link Configurable Configurable}
interface. |
protected abstract FTPClientConfig | getDefaultConfiguration()
Each concrete subclass must define this member to create
a default configuration to be used when that subclass is
instantiated without a {@link FTPClientConfig FTPClientConfig}
parameter being specified. |
Calendar | parseTimestamp(String timestampStr)
This method is called by the concrete parsers to delegate
timestamp parsing to the timestamp parser.
|
Parameters: regex Regular expression used main parsing of the file listing.
Parameters: config the configuration to be used to configure this parser. If it is null, a default configuration defined by each concrete subclass is used instead.
Returns: the default configuration for the subclass.
Parameters: timestampStr the timestamp string pulled from the
file listing by the regular expression parser, to be submitted
to the timestampParser
for extracting the timestamp.
Returns: a java.util.Calendar
containing results of the
timestamp parse.