| org.apache.commons.net.ftp.parser.RegexFTPFileEntryParserImpl org.apache.commons.net.ftp.parser.ConfigurableFTPFileEntryParserImpl org.apache.commons.net.ftp.parser.VMSFTPEntryParser
All known Subclasses: org.apache.commons.net.ftp.parser.VMSVersioningFTPEntryParser,
VMSFTPEntryParser | public class VMSFTPEntryParser extends ConfigurableFTPFileEntryParserImpl (Code) | | Implementation FTPFileEntryParser and FTPFileListParser for VMS Systems.
This is a sample of VMS LIST output
"1-JUN.LIS;1 9/9 2-JUN-1998 07:32:04 [GROUP,OWNER] (RWED,RWED,RWED,RE)",
"1-JUN.LIS;2 9/9 2-JUN-1998 07:32:04 [GROUP,OWNER] (RWED,RWED,RWED,RE)",
"DATA.DIR;1 1/9 2-JUN-1998 07:32:04 [GROUP,OWNER] (RWED,RWED,RWED,RE)",
Note: VMSFTPEntryParser can only be instantiated through the
DefaultFTPParserFactory by classname. It will not be chosen
by the autodetection scheme.
author: Winston Ojeda author: Steve Cohen author: Stephane ESTE-GRACIAS version: $Id: VMSFTPEntryParser.java 155429 2005-02-26 13:13:04Z dirkv $ See Also: org.apache.commons.net.ftp.FTPFileEntryParser See Also: FTPFileEntryParser (for usage instructions) See Also: org.apache.commons.net.ftp.parser.DefaultFTPFileEntryParserFactory |
VMSFTPEntryParser | public VMSFTPEntryParser()(Code) | | Constructor for a VMSFTPEntryParser object.
exception: IllegalArgumentException - Thrown if the regular expression is unparseable. Should not be seenunder normal conditions. It it is seen, this is a sign thatREGEX is not a valid regular expression. |
VMSFTPEntryParser | public VMSFTPEntryParser(FTPClientConfig config)(Code) | | This constructor allows the creation of a VMSFTPEntryParser object with
something other than the default configuration.
Parameters: config - The FTPClientConfig configuration object used to configure this parser. exception: IllegalArgumentException - Thrown if the regular expression is unparseable. Should not be seenunder normal conditions. It it is seen, this is a sign thatREGEX is not a valid regular expression. since: 1.4 |
getDefaultConfiguration | protected FTPClientConfig getDefaultConfiguration()(Code) | | Defines a default configuration to be used when this class is
instantiated without a
FTPClientConfig FTPClientConfig parameter being specified.
the default configuration for this parser. |
isVersioning | protected boolean isVersioning()(Code) | | |
parseFTPEntry | public FTPFile parseFTPEntry(String entry)(Code) | | Parses a line of a VMS 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 An FTPFile instance corresponding to the supplied entry |
parseFileList | public FTPFile[] parseFileList(InputStream listStream) throws IOException(Code) | | Parses an FTP server file listing and converts it into a usable format
in the form of an array of 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.
Parameters: listStream - The InputStream from which the file list should beread. The list of file information contained in the given path. nullif the list could not be obtained or if there are no files inthe directory. exception: IOException - If an I/O error occurs reading the listStream. |
readNextEntry | public String readNextEntry(BufferedReader reader) throws IOException(Code) | | Reads the next entry using the supplied BufferedReader object up to
whatever delemits one entry from the next. This parser cannot use
the default implementation of simply calling BufferedReader.readLine(),
because one entry may span multiple lines.
Parameters: reader - The BufferedReader object from which entries are to beread. A string representing the next ftp entry or null if none found. exception: IOException - thrown on any IO Error reading from the reader. |
Fields inherited from org.apache.commons.net.ftp.parser.RegexFTPFileEntryParserImpl | protected PatternMatcher _matcher_(Code)(Java Doc)
|
|
|