Secure iNet Factory

com.jscape.inet.ftp
Interface FtpFileParser

All Known Implementing Classes:
AS400Parser, MvsParser, NTParser, UnixParser, VMSParser

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

parse

java.util.Enumeration parse(java.io.BufferedReader in)
                            throws java.io.IOException
Method for parsing a directory listing returned by FTP server.

Parameters:
in - a BufferedReader passed in by Ftp class when invoking Ftp#getDirListing method
Returns:
an Enumeration of FtpFile
Throws:
java.io.IOException - if an I/O or FTP related error occurs
See Also:
FtpFile, Ftp.getDirListing(java.lang.String)

getFileDate

java.util.Date getFileDate(java.lang.String date)
                           throws java.text.ParseException
Parses a string which contains a date a returns a date object

Parameters:
date - The string will be parsed
Returns:
A object date which corresponds with the input string argument
Throws:
java.text.ParseException - if an error ocurrs

getDateTime

java.util.Date getDateTime(FtpFile file)
                           throws java.text.ParseException
Throws:
java.text.ParseException

Secure iNet Factory

Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved