org.apache.commons.net.ftp.parser
Class OS2FTPEntryParser
- FTPFileEntryParser, FTPFileListParser
public class OS2FTPEntryParser
Implementation of FTPFileEntryParser and FTPFileListParser for OS2 Systems.
Version:
- Winston Ojeda
- Steve Cohen
FTPFileEntryParser (for usage instructions)
private static String | REGEX - this is the regular expression used by this parser.
|
FTPFile | parseFTPEntry(String entry) - Parses a line of an OS2 FTP server file listing and converts it into a
usable format in the form of an
FTPFile instance.
|
REGEX
private static final String REGEX
this is the regular expression used by this parser.
OS2FTPEntryParser
public OS2FTPEntryParser()
The sole constructor for a OS2FTPEntryParser object.
parseFTPEntry
public FTPFile parseFTPEntry(String entry)
Parses a line of an OS2 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