org.apache.commons.net.ftp.parser
Class MVSFTPEntryParser
- Configurable, FTPFileEntryParser, FTPFileListParser
public class MVSFTPEntryParser
Implementation of FTPFileEntryParser and FTPFileListParser for IBM MVS Systems.
protected FTPClientConfig | getDefaultConfiguration() - Each concrete subclass must define this member to create
a default configuration to be used when that subclass is
instantiated without a
FTPClientConfig
parameter being specified.
|
FTPFile | parseFTPEntry(String entry) - Parses a line of an MVS FTP server file listing and converts it into a
usable format in the form of an
FTPFile instance.
|
MVSFTPEntryParser
public MVSFTPEntryParser()
The sole constructor for a MVSFTPEntryParser object.
parseFTPEntry
public FTPFile parseFTPEntry(String entry)
Parses a line of an MVS 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