public class VMSFTPEntryParser extends ConfigurableFTPFileEntryParserImpl
Note: VMSFTPEntryParser can only be instantiated through the DefaultFTPParserFactory by classname. It will not be chosen by the autodetection scheme.
FTPFileEntryParser (for usage instructions),
DefaultFTPFileEntryParserFactory_matcher_| Constructor and Description |
|---|
VMSFTPEntryParser()
Constructor for a VMSFTPEntryParser object.
|
VMSFTPEntryParser(FTPClientConfig config)
This constructor allows the creation of a VMSFTPEntryParser object with
something other than the default configuration.
|
| Modifier and Type | Method and Description |
|---|---|
protected FTPClientConfig |
getDefaultConfiguration()
Defines a default configuration to be used when this class is
instantiated without a
FTPClientConfig
parameter being specified. |
protected boolean |
isVersioning() |
FTPFile[] |
parseFileList(java.io.InputStream listStream)
Parses an FTP server file listing and converts it into a usable format
in the form of an array of
FTPFile instances. |
FTPFile |
parseFTPEntry(java.lang.String entry)
Parses a line of a VMS FTP server file listing and converts it into a
usable format in the form of an
FTPFile instance. |
java.lang.String |
readNextEntry(java.io.BufferedReader reader)
Reads the next entry using the supplied BufferedReader object up to
whatever delemits one entry from the next.
|
configure, parseTimestampgetGroupCnt, getGroupsAsString, group, matchesparseFileList, preParsepublic VMSFTPEntryParser()
java.lang.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.public VMSFTPEntryParser(FTPClientConfig config)
config - The configuration object used to
configure this parser.java.lang.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.public FTPFile[] parseFileList(java.io.InputStream listStream) throws java.io.IOException
FTPFile instances. If the
file list contains no files, null should be
returned, otherwise an array of FTPFile instances
representing the files in the directory is returned.
parseFileList in interface FTPFileListParserparseFileList in class FTPFileEntryParserImpllistStream - The InputStream from which the file list should be
read.java.io.IOException - If an I/O error occurs reading the listStream.public FTPFile parseFTPEntry(java.lang.String entry)
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.
entry - A line of text from the file listingpublic java.lang.String readNextEntry(java.io.BufferedReader reader)
throws java.io.IOException
readNextEntry in interface FTPFileEntryParserreadNextEntry in class FTPFileEntryParserImplreader - The BufferedReader object from which entries are to be
read.java.io.IOException - thrown on any IO Error reading from the reader.protected boolean isVersioning()
protected FTPClientConfig getDefaultConfiguration()
FTPClientConfig
parameter being specified.getDefaultConfiguration in class ConfigurableFTPFileEntryParserImpl