|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.net.ftp.FTPFileEntryParserImpl
org.apache.commons.net.ftp.parser.RegexFTPFileEntryParserImpl
org.apache.commons.net.ftp.parser.ConfigurableFTPFileEntryParserImpl
org.apache.commons.net.ftp.parser.VMSFTPEntryParser
public class VMSFTPEntryParser
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.
FTPFileEntryParser (for usage instructions),
DefaultFTPFileEntryParserFactory| Field Summary |
|---|
| Fields inherited from class org.apache.commons.net.ftp.parser.RegexFTPFileEntryParserImpl |
|---|
_matcher_ |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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(InputStream listStream)
Deprecated. (2.2) No other FTPFileEntryParser implementations have this method. |
FTPFile |
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. |
String |
readNextEntry(BufferedReader reader)
Reads the next entry using the supplied BufferedReader object up to whatever delemits one entry from the next. |
| Methods inherited from class org.apache.commons.net.ftp.parser.ConfigurableFTPFileEntryParserImpl |
|---|
configure, parseTimestamp |
| Methods inherited from class org.apache.commons.net.ftp.parser.RegexFTPFileEntryParserImpl |
|---|
getGroupCnt, getGroupsAsString, group, matches, setRegex |
| Methods inherited from class org.apache.commons.net.ftp.FTPFileEntryParserImpl |
|---|
preParse |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VMSFTPEntryParser()
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.
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 |
|---|
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.
entry - A line of text from the file listing
public String readNextEntry(BufferedReader reader)
throws IOException
readNextEntry in interface FTPFileEntryParserreadNextEntry in class FTPFileEntryParserImplreader - The BufferedReader object from which entries are to be
read.
IOException - thrown on any IO Error reading from the reader.protected boolean isVersioning()
protected FTPClientConfig getDefaultConfiguration()
FTPClientConfig
parameter being specified.
getDefaultConfiguration in class ConfigurableFTPFileEntryParserImpl
@Deprecated
public FTPFile[] parseFileList(InputStream listStream)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||