public interface FtpFileParser
| Modifier and Type | Method and Description |
|---|---|
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.
|
java.util.Enumeration parse(java.io.BufferedReader in)
throws java.io.IOException
in - a BufferedReader passed in by Ftp class when invoking Ftp#getDirListing methodEnumeration of FtpFilejava.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 parsedjava.text.ParseException - if an error ocurrsjava.util.Date getDateTime(FtpFile file) throws java.text.ParseException
java.text.ParseExceptionCopyright © JSCAPE LLC. 1999-2023. All Rights Reserved