org.apache.commons.net.ftp.parser

Class VMSVersioningFTPEntryParser

public class VMSVersioningFTPEntryParser extends VMSFTPEntryParser

Special implementation VMSFTPEntryParser with versioning turned on. This parser removes all duplicates and only leaves the version with the highest version number for each filename. This is a sample of VMS LIST output "1-JUN.LIS;1 9/9 2-JUN-1998 07:32:04 [GROUP,OWNER] (RWED,RWED,RWED,RE)", "1-JUN.LIS;2 9/9 2-JUN-1998 07:32:04 [GROUP,OWNER] (RWED,RWED,RWED,RE)", "DATA.DIR;1 1/9 2-JUN-1998 07:32:04 [GROUP,OWNER] (RWED,RWED,RWED,RE)",

Version: $Id: VMSVersioningFTPEntryParser.java 636854 2008-03-13 19:55:01Z sebb $

Author: Winston Ojeda Stephane ESTE-GRACIAS

See Also: FTPFileEntryParser (for usage instructions)

Constructor Summary
VMSVersioningFTPEntryParser()
Constructor for a VMSFTPEntryParser object.
VMSVersioningFTPEntryParser(FTPClientConfig config)
This constructor allows the creation of a VMSVersioningFTPEntryParser object with something other than the default configuration.

Constructor Detail

VMSVersioningFTPEntryParser

public VMSVersioningFTPEntryParser()
Constructor for a VMSFTPEntryParser object. Sets the versioning member to the supplied value.

Throws: IllegalArgumentException Thrown if the regular expression is unparseable. Should not be seen under normal conditions. It it is seen, this is a sign that REGEX is not a valid regular expression.

VMSVersioningFTPEntryParser

public VMSVersioningFTPEntryParser(FTPClientConfig config)
This constructor allows the creation of a VMSVersioningFTPEntryParser object with something other than the default configuration.

Parameters: config The configuration object used to configure this parser.

Throws: IllegalArgumentException Thrown if the regular expression is unparseable. Should not be seen under normal conditions. It it is seen, this is a sign that REGEX is not a valid regular expression.

Since: 1.4