org.apache.commons.net.ftp.parser
Class EnterpriseUnixFTPEntryParser

java.lang.Object
  |
  +--org.apache.commons.net.ftp.FTPFileListParserImpl
        |
        +--org.apache.commons.net.ftp.parser.EnterpriseUnixFTPEntryParser
All Implemented Interfaces:
FTPFileEntryParser, FTPFileListParser

public class EnterpriseUnixFTPEntryParser
extends FTPFileListParserImpl

Parser for the Connect Enterprise Unix FTP Server From Sterling Commerce. Here is a sample of the sort of output line this parser processes: "-C--E-----FTP B QUA1I1 18128 41 Aug 12 13:56 QUADTEST"

Version:
$Id: EnterpriseUnixFTPEntryParser.java,v 1.3 2003/05/18 04:03:17 brekke Exp $
Author:
Winston Ojeda

Field Summary
private static java.lang.String MONTHS
          months abbreviations looked for by this parser.
private static java.lang.String REGEX
          this is the regular expression used by this parser.
 
Fields inherited from class org.apache.commons.net.ftp.FTPFileListParserImpl
_matcher_
 
Constructor Summary
EnterpriseUnixFTPEntryParser()
          The sole constructor for a EnterpriseUnixFTPEntryParser object.
 
Method Summary
 FTPFile parseFTPEntry(java.lang.String entry)
          Parses a line of a unix FTP server file listing and converts it into a usable format in the form of an FTPFile instance.
 
Methods inherited from class org.apache.commons.net.ftp.FTPFileListParserImpl
getGroupCnt, getGroupsAsString, group, matches, parseFileList, readNextEntry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MONTHS

private static final java.lang.String MONTHS
months abbreviations looked for by this parser. Also used to determine which month has been matched by the parser.

See Also:
Constant Field Values

REGEX

private static final java.lang.String REGEX
this is the regular expression used by this parser.

See Also:
Constant Field Values
Constructor Detail

EnterpriseUnixFTPEntryParser

public EnterpriseUnixFTPEntryParser()
The sole constructor for a EnterpriseUnixFTPEntryParser object.

Method Detail

parseFTPEntry

public FTPFile parseFTPEntry(java.lang.String entry)
Parses a line of a unix FTP server file listing and converts it into a usable format in the form of an FTPFile instance. If the file listing line doesn't describe a file, null is returned, otherwise a FTPFile instance representing the files in the directory is returned.

Parameters:
entry - A line of text from the file listing
Returns:
An FTPFile instance corresponding to the supplied entry