org.apache.commons.net.ftp.parser
Interface FTPFileEntryParserFactory

public interface FTPFileEntryParserFactory
The interface describes a factory for creating FTPFileEntryParsers.
Since1.2
VersionNot specified.
AuthorNot specified.
Wiki javadoc Use textile entry format.
Add your comments here.
Method Summary
FTPFileEntryParser createFileEntryParser( String key )
Implementation should be a method that decodes the supplied key and creates an object implementing the interface FTPFileEntryParser.
FTPFileEntryParser createFileEntryParser( 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.

createFileEntryParser
public FTPFileEntryParser createFileEntryParser ( String key )
Implementation should be a method that decodes the supplied key and creates an object implementing the interface FTPFileEntryParser.
Parameters
TypeNameDescription
String key A string that somehow identifies an FTPFileEntryParser to be created.
Exceptions
ParserInitializationException Thrown on any exception in instantiation
Wiki javadoc Use textile entry format.
Add your comments here.
createFileEntryParser
public FTPFileEntryParser createFileEntryParser ( 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.

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
Parameters
TypeNameDescription
FTPClientConfig config A FTPClientConfig used to configure the parser created
Exceptions
ParserInitializationException Thrown on any exception in instantiation
Wiki javadoc Use textile entry format.
Add your comments here.