org.apache.commons.net.ftp.parser
Class MVSFTPEntryParser
ConfigurableFTPFileEntryParserImpl
org.apache.commons.net.ftp.parser.MVSFTPEntryParser
public class MVSFTPEntryParser
extends ConfigurableFTPFileEntryParserImpl
Implementation of FTPFileEntryParser and FTPFileListParser for IBM zOS/MVS
Systems.
MVSFTPEntryParser
public MVSFTPEntryParser()
The sole constructor for a MVSFTPEntryParser object.
FTPClientConfig getDefaultConfiguration
protected @Override FTPClientConfig getDefaultConfiguration()
List preParse
public @Override List preParse(List orig)
preParse is called as part of the interface. Per definition is is called
before the parsing takes place. Three kind of lists is recognize:
z/OS-MVS File lists z/OS-MVS Member lists unix file lists
parseFTPEntry
public FTPFile parseFTPEntry(String entry)
Parses a line of an z/OS - 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, then
null
is returned. Otherwise a FTPFile
instance representing the file is returned.
entry
- A line of text from the file listing
- An FTPFile instance corresponding to the supplied entry