org.apache.commons.net.ftp

Class FTPFileListParserImpl

public abstract class FTPFileListParserImpl extends RegexFTPFileEntryParserImpl

Deprecated: This class is deprecated as of version 1.2 and will be removed in version 2.0 -- org.apache.commons.net.ftp.RegexFTPFileEntryParserImpl is its designated replacement. Class has been renamed, entire implemenation is in RegexFTPFileEntryParserImpl.

This abstract class implements both the older FTPFileListParser and newer FTPFileEntryParser interfaces with default functionality. All the classes in the parser subpackage inherit from this.

Author: Steve Cohen

See Also: RegexFTPFileEntryParserImpl

Constructor Summary
FTPFileListParserImpl(String regex)
The constructor for a FTPFileListParserImpl object.

Constructor Detail

FTPFileListParserImpl

public FTPFileListParserImpl(String regex)
The constructor for a FTPFileListParserImpl object.

Parameters: regex The regular expression with which this object is initialized.

Throws: IllegalArgumentException Thrown if the regular expression is unparseable. Should not be seen in normal conditions. It it is seen, this is a sign that a subclass has been created with a bad regular expression. Since the parser must be created before use, this means that any bad parser subclasses created from this will bomb very quickly, leading to easy detection.