⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
org.apache.commons.net.ftp.parser

Class VMSVersioningFTPEntryParser

java.lang.Object
|
+--org.apache.commons.net.ftp.FTPFileEntryParserImpl
   |
   +--org.apache.commons.net.ftp.parser.RegexFTPFileEntryParserImpl
      |
      +--org.apache.commons.net.ftp.parser.VMSFTPEntryParser
         |
         +--org.apache.commons.net.ftp.parser.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)",

Authors:
See Also:
org.apache.commons.net.ftp.FTPFileEntryParser FTPFileEntryParser (for usage instructions)

Constructor Summary

VMSVersioningFTPEntryParser()

Constructor for a VMSFTPEntryParser object.

Method Summary

boolean

isVersioning()

List

preParse(List original)

Implement hook provided for those implementers (such as VMSVersioningFTPEntryParser, and possibly others) which return multiple files with the same name to remove the duplicates ..

Constructor Details

VMSVersioningFTPEntryParser

public VMSVersioningFTPEntryParser()

Constructor for a VMSFTPEntryParser object. Sets the versioning member to the supplied value.

Throws:
- Thrown if the regular expression is unparseable.

Method Details

isVersioning

protected boolean isVersioning()


preParse

public List preParse(List original)

Implement hook provided for those implementers (such as VMSVersioningFTPEntryParser, and possibly others) which return multiple files with the same name to remove the duplicates ..

Parameters:
original - Original list
Returns:
Original list purged of duplicates