org.apache.commons.net.ftp.parser

Class MVSFTPEntryParser


public class MVSFTPEntryParser
extends ConfigurableFTPFileEntryParserImpl

Implementation of FTPFileEntryParser and FTPFileListParser for IBM zOS/MVS Systems.
See Also:
FTPFileEntryParser (for usage instructions)

Constructor Summary

MVSFTPEntryParser()
The sole constructor for a MVSFTPEntryParser object.

Method Summary

protected @Override
FTPClientConfig getDefaultConfiguration()
@Override
List preParse(List orig)
preParse is called as part of the interface.
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.

Constructor Details

MVSFTPEntryParser

public MVSFTPEntryParser()
The sole constructor for a MVSFTPEntryParser object.

Method Details

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
Since:
2.0

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.
Parameters:
entry - A line of text from the file listing
Returns:
An FTPFile instance corresponding to the supplied entry