Class VMSVersioningFTPEntryParser
java.lang.Object
org.apache.commons.net.ftp.FTPFileEntryParserImpl
org.apache.commons.net.ftp.parser.RegexFTPFileEntryParserImpl
org.apache.commons.net.ftp.parser.ConfigurableFTPFileEntryParserImpl
org.apache.commons.net.ftp.parser.VMSFTPEntryParser
org.apache.commons.net.ftp.parser.VMSVersioningFTPEntryParser
- All Implemented Interfaces:
- Configurable,- FTPFileEntryParser
Special implementation VMSFTPEntryParser with versioning turned on. This parser removes all duplicates and only leaves the version with the highest version
 number for each file name.
 
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)",
- See Also:
- 
Field SummaryFields inherited from class org.apache.commons.net.ftp.parser.RegexFTPFileEntryParserImpl_matcher_
- 
Constructor SummaryConstructorsConstructorDescriptionConstructor for a VMSFTPEntryParser object.This constructor allows the creation of a VMSVersioningFTPEntryParser object with something other than the default configuration.
- 
Method SummaryMethods inherited from class org.apache.commons.net.ftp.parser.VMSFTPEntryParsergetDefaultConfiguration, parseFileList, parseFTPEntry, readNextEntryMethods inherited from class org.apache.commons.net.ftp.parser.ConfigurableFTPFileEntryParserImplconfigure, parseTimestampMethods inherited from class org.apache.commons.net.ftp.parser.RegexFTPFileEntryParserImplgetGroupCnt, getGroupsAsString, group, matches, setRegex, setRegex
- 
Constructor Details- 
VMSVersioningFTPEntryParserpublic VMSVersioningFTPEntryParser()Constructor for a VMSFTPEntryParser object.- Throws:
- IllegalArgumentException- Thrown if the regular expression is unparseable. Should not be seen under normal conditions. If the exception is seen, this is a sign that- REGEXis not a valid regular expression.
 
- 
VMSVersioningFTPEntryParserThis constructor allows the creation of a VMSVersioningFTPEntryParser object with something other than the default configuration.- Parameters:
- config- The- configurationobject used to configure this parser.
- Throws:
- IllegalArgumentException- Thrown if the regular expression is unparseable. Should not be seen under normal conditions. If the exception is seen, this is a sign that- REGEXis not a valid regular expression.
- Since:
- 1.4
 
 
- 
- 
Method Details- 
isVersioning- Overrides:
- isVersioningin class- VMSFTPEntryParser
 
- 
preParseImplement hook provided for those implementers (such as VMSVersioningFTPEntryParser, and possibly others) which return multiple files with the same name to remove the duplicates ..- Specified by:
- preParsein interface- FTPFileEntryParser
- Overrides:
- preParsein class- FTPFileEntryParserImpl
- Parameters:
- original- Original list
- Returns:
- Original list purged of duplicates
 
 
-