|
Secure FTP Factory | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FtpFileParser
Interface to be implemented by classes responsible for parsing directory listings returned by various FTP servers.
| 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. |
| Method Detail |
|---|
java.util.Enumeration parse(java.io.BufferedReader in)
throws java.io.IOException
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)
java.util.Date getFileDate(java.lang.String date)
throws java.text.ParseException
date - The string will be parsed
java.text.ParseException - if an error ocurrs
java.util.Date getDateTime(FtpFile file)
throws java.text.ParseException
java.text.ParseException
|
Secure FTP Factory | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||