Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.commons.net.ftp.parser
Interface FTPFileEntryParserFactory  view FTPFileEntryParserFactory download FTPFileEntryParserFactory.java

All Known Implementing Classes:
DefaultFTPFileEntryParserFactory

public interface FTPFileEntryParserFactory

The interface describes a factory for creating FTPFileEntryParsers.

Since:
1.2

Method Summary
 org.apache.commons.net.ftp.FTPFileEntryParser createFileEntryParser(org.apache.commons.net.ftp.FTPClientConfig config)
           Implementation should be a method that extracts a key from the supplied FTPClientConfig parameter and creates an object implementing the interface FTPFileEntryParser and uses the supplied configuration to configure it.
 org.apache.commons.net.ftp.FTPFileEntryParser createFileEntryParser(java.lang.String key)
          Implementation should be a method that decodes the supplied key and creates an object implementing the interface FTPFileEntryParser.
 

Method Detail

createFileEntryParser

public org.apache.commons.net.ftp.FTPFileEntryParser createFileEntryParser(java.lang.String key)
                                                                    throws ParserInitializationException
Implementation should be a method that decodes the supplied key and creates an object implementing the interface FTPFileEntryParser.


createFileEntryParser

public org.apache.commons.net.ftp.FTPFileEntryParser createFileEntryParser(org.apache.commons.net.ftp.FTPClientConfig config)
                                                                    throws ParserInitializationException

Implementation should be a method that extracts a key from the supplied FTPClientConfig parameter and creates an object implementing the interface FTPFileEntryParser and uses the supplied configuration to configure it.

Note that this method will generally not be called in scenarios that call for autodetection of parser type but rather, for situations where the user knows that the server uses a non-default configuration and knows what that configuration is.

Since:
1.4