|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jscape.inet.ftp.MvsParser
public class MvsParser
Nested Class Summary | |
---|---|
static class |
MvsParser.MvsFileRecord
|
Constructor Summary | |
---|---|
MvsParser()
|
Method Summary | |
---|---|
java.util.Date |
getDateTime(FtpFile file)
|
java.util.Date |
getFileDate(java.lang.String date)
Parses a string which contains a date a returns a date object |
java.util.Enumeration |
parse(java.io.BufferedReader in)
Method for parsing a directory listing returned by FTP server. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MvsParser()
Method Detail |
---|
public java.util.Enumeration parse(java.io.BufferedReader in) throws java.io.IOException
FtpFileParser
parse
in interface FtpFileParser
in
- a BufferedReader passed in by Ftp class when invoking Ftp#getDirListing method
Enumeration
of FtpFile
java.io.IOException
- if an I/O or FTP related error occursFtpFile
,
Ftp.getDirListing(java.lang.String)
public java.util.Date getFileDate(java.lang.String date) throws java.text.ParseException
FtpFileParser
getFileDate
in interface FtpFileParser
date
- The string will be parsed
java.text.ParseException
- if an error ocurrspublic java.util.Date getDateTime(FtpFile file) throws java.text.ParseException
getDateTime
in interface FtpFileParser
java.text.ParseException
|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |