FileDocCategorySizeDatePackage
FTPFileEntryParserFactory.javaAPI DocApache Commons NET 1.4.1 API2536Sat Dec 03 10:05:48 GMT 2005org.apache.commons.net.ftp.parser

FTPFileEntryParserFactory

public interface FTPFileEntryParserFactory
The interface describes a factory for creating FTPFileEntryParsers.
since
1.2

Fields Summary
Constructors Summary
Methods Summary
public org.apache.commons.net.ftp.FTPFileEntryParsercreateFileEntryParser(java.lang.String key)
Implementation should be a method that decodes the supplied key and creates an object implementing the interface FTPFileEntryParser.

param
key A string that somehow identifies an FTPFileEntryParser to be created.
return
the FTPFileEntryParser created.
exception
ParserInitializationException Thrown on any exception in instantiation

public org.apache.commons.net.ftp.FTPFileEntryParsercreateFileEntryParser(org.apache.commons.net.ftp.FTPClientConfig config)

Implementation should be a method that extracts a key from the supplied {@link FTPClientConfig 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.

param
config A {@link FTPClientConfig FTPClientConfig} used to configure the parser created
return
the @link FTPFileEntryParser FTPFileEntryParser} so created.
exception
ParserInitializationException Thrown on any exception in instantiation
since
1.4