org.apache.commons.net.ftp.parser
Class OS2FTPEntryParser
- FTPFileEntryParser, FTPFileListParser
public class OS2FTPEntryParser
Implementation of FTPFileEntryParser and FTPFileListParser for OS2 Systems.
FTPFileEntryParser (for usage instructions)
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.
|
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