org.apache.commons.net.ftp.parser

Class MVSFTPEntryParser

public class MVSFTPEntryParser extends ConfigurableFTPFileEntryParserImpl

Implementation of FTPFileEntryParser and FTPFileListParser for IBM MVS Systems.

Version: $Id$

Author: Jeff Nadler William Noto

See Also: FTPFileEntryParser (for usage instructions)

Constructor Summary
MVSFTPEntryParser()
The sole constructor for a MVSFTPEntryParser object.
Method Summary
protected FTPClientConfiggetDefaultConfiguration()
FTPFileparseFTPEntry(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.

Constructor Detail

MVSFTPEntryParser

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

Throws: IllegalArgumentException Thrown if the regular expression is unparseable. Should not be seen under normal conditions. It it is seen, this is a sign that REGEX is not a valid regular expression.

Method Detail

getDefaultConfiguration

protected FTPClientConfig getDefaultConfiguration()

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.

Parameters: entry A line of text from the file listing

Returns: An FTPFile instance corresponding to the supplied entry