public class EnterpriseUnixFTPEntryParser extends RegexFTPFileEntryParserImpl
Note: EnterpriseUnixFTPEntryParser can only be instantiated through the DefaultFTPParserFactory by classname. It will not be chosen by the autodetection scheme.
FTPFileEntryParser (for usage instructions)
,
DefaultFTPFileEntryParserFactory
Modifier and Type | Field and Description |
---|---|
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.
|
_matcher_
Constructor and Description |
---|
EnterpriseUnixFTPEntryParser()
The sole constructor for a EnterpriseUnixFTPEntryParser object.
|
Modifier and Type | Method and Description |
---|---|
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. |
getGroupCnt, getGroupsAsString, group, matches, setRegex, setRegex
preParse, readNextEntry
private static final java.lang.String MONTHS
private static final java.lang.String REGEX
public EnterpriseUnixFTPEntryParser()
public FTPFile parseFTPEntry(java.lang.String entry)
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.entry
- A line of text from the file listing