java.lang.Object
|
+--org.apache.commons.net.ftp.FTPFileEntryParserImpl
|
+--org.apache.commons.net.ftp.parser.RegexFTPFileEntryParserImpl
|
+--org.apache.commons.net.ftp.parser.VMSFTPEntryParser
Known Direct Subclasses:org.apache.commons.net.ftp.FTPFileEntryParser FTPFileEntryParser (for usage instructions)
org.apache.commons.net.ftp.parser.DefaultFTPFileEntryParserFactory
Constructor for a VMSFTPEntryParser object. |
boolean | |
parseFTPEntry(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. | |
FTPFile[] | parseFileList(InputStream listStream) Parses an FTP server file listing and converts it into a usable format in the form of an array of FTPFile instances. |
String | readNextEntry(BufferedReader reader) Reads the next entry using the supplied BufferedReader object up to whatever delemits one entry from the next. |
public VMSFTPEntryParser()
- Thrown if the regular expression is unparseable.protected boolean isVersioning()
public FTPFile parseFTPEntry(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.
public FTPFile[] parseFileList(InputStream listStream)
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.
- If an I/O error occurs reading the listStream.public String readNextEntry(BufferedReader reader)
- thrown on any IO Error reading from the reader.