|
Secure FTP Factory | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jscape.inet.ftp.VMSParser
Parser responsible for handling FTP directory listing returned in VMS format. The following is a partial example listing of the format expected.
ANONYMOUS:[000000] .MESSAGE;4 1 1-MAR-1997 09:49 [1,1] (RWED,RWED,RE,RE) 000ARCHIVES.TXT;3 2 1-MAR-1997 09:57 [1,1] (RWED,RWED,RE,RE) CGI.DIR;1 1 19-NOV-2001 21:10 [1,1] (RWE,RWE,RE,RE) CONTRIB.DIR;1 1 19-NOV-2001 21:10 [1,1] (RWE,RWE,RE,RE)
| Constructor Summary | |
VMSParser()
|
|
| Method Summary | |
java.util.Date |
getDateTime(FtpFile file)
Gets the date and time for an FtpFile entry sourced from an NT directory listing. |
java.util.Date |
getDateTime(FtpFile file,
java.util.TimeZone zone,
java.util.Locale locale)
Gets the date and time for an FtpFile entry sourced from an VMS directory listing. |
java.util.Date |
getFileDate(java.lang.String date)
Parses a string which contains a date and returns a date object |
java.util.Enumeration |
parse(java.io.BufferedReader in)
Parses directory listing. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public VMSParser()
| Method Detail |
public java.util.Enumeration parse(java.io.BufferedReader in)
throws java.io.IOException
parse in interface FtpFileParserin - the BufferedReader passed in by Ftp class when invoking Ftp#getDirListing method.
java.io.IOException - if an I/O or FTP related error occursFtpFile,
Ftp.getDirListing(java.lang.String)
public java.util.Date getDateTime(FtpFile file,
java.util.TimeZone zone,
java.util.Locale locale)
throws java.text.ParseException
file - the FtpFilezone - the TimeZone to use when calculating time. Your default timezone is used if not provided.locale - the Locale to use when parsing date. Locale.US is used if not provided.
java.text.ParseException - if an error occurs while parsing entry
public java.util.Date getDateTime(FtpFile file)
throws java.text.ParseException
getDateTime in interface FtpFileParserfile - the FtpFile
java.text.ParseException - if an error occurs while parsing entryFtpFile
public java.util.Date getFileDate(java.lang.String date)
throws java.text.ParseException
getFileDate in interface FtpFileParserdate - The string will be parsed
java.text.ParseException - if an error ocurrs
|
Secure FTP Factory | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||