org.apache.commons.net.ftp.parser
Class EnterpriseUnixFTPEntryParser
- FTPFileEntryParser, FTPFileListParser
public class EnterpriseUnixFTPEntryParser
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"
Note: EnterpriseUnixFTPEntryParser can only be instantiated through the
DefaultFTPParserFactory by classname. It will not be chosen
by the autodetection scheme.
Version:
- Winston Ojeda
FTPFileEntryParser (for usage instructions)
, DefaultFTPFileEntryParserFactory
private static String | MONTHS - months abbreviations looked for by this parser.
|
private static String | REGEX - this is the regular expression used by this parser.
|
FTPFile | parseFTPEntry(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.
|
MONTHS
private static final String MONTHS
months abbreviations looked for by this parser. Also used
to determine which month has been matched by the parser.
REGEX
private static final String REGEX
this is the regular expression used by this parser.
EnterpriseUnixFTPEntryParser
public EnterpriseUnixFTPEntryParser()
The sole constructor for a EnterpriseUnixFTPEntryParser object.
parseFTPEntry
public FTPFile parseFTPEntry(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.
- parseFTPEntry in interface FTPFileEntryParser
entry
- A line of text from the file listing
- An FTPFile instance corresponding to the supplied entry