public class DefaultFTPFileEntryParserFactory extends Object implements FTPFileEntryParserFactory
| Constructor and Description |
|---|
DefaultFTPFileEntryParserFactory()
Constructs a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
FTPFileEntryParser |
createFileEntryParser(FTPClientConfig config)
Implementation extracts a key from the supplied
FTPClientConfig parameter and creates an object implementing the interface
FTPFileEntryParser and uses the supplied configuration to configure it. |
FTPFileEntryParser |
createFileEntryParser(String key)
This default implementation of the FTPFileEntryParserFactory interface works according to the following logic: First it attempts to interpret the
supplied key as a fully qualified class name (default package is not allowed) of a class implementing the FTPFileEntryParser interface.
|
FTPFileEntryParser |
createMVSEntryParser()
Creates a new MVSFTPEntryParser.
|
FTPFileEntryParser |
createNetwareFTPEntryParser()
Creates a new NetwareFTPEntryParser.
|
FTPFileEntryParser |
createNTFTPEntryParser()
Creates a new FTPFileEntryParser.
|
FTPFileEntryParser |
createOS2FTPEntryParser()
Creates a new OS2FTPEntryParser.
|
FTPFileEntryParser |
createOS400FTPEntryParser()
Creates a new FTPFileEntryParser.
|
FTPFileEntryParser |
createUnixFTPEntryParser()
Creates a new UnixFTPEntryParser.
|
FTPFileEntryParser |
createVMSVersioningFTPEntryParser()
Creates a new VMSVersioningFTPEntryParser.
|
public DefaultFTPFileEntryParserFactory()
public FTPFileEntryParser createFileEntryParser(FTPClientConfig config) throws ParserInitializationException
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.
createFileEntryParser in interface FTPFileEntryParserFactoryconfig - A FTPClientConfig used to configure the parser createdFTPFileEntryParser so created.ParserInitializationException - Thrown on any exception in instantiationNullPointerException - if config is nullpublic FTPFileEntryParser createFileEntryParser(String key)
If key is not recognized as a fully qualified class name known to the system, this method will then attempt to see whether it
contains a string identifying one of the known parsers. This comparison is case-insensitive. The intent here is where
possible, to select as keys strings which are returned by the SYST command on the systems which the corresponding parser successfully parses. This
enables this factory to be used in the auto-detection system.
createFileEntryParser in interface FTPFileEntryParserFactorykey - should be a fully qualified class name corresponding to a class implementing the FTPFileEntryParser interfaceParserInitializationException - thrown if for any reason the factory cannot resolve the supplied key into an FTPFileEntryParser.FTPFileEntryParserpublic FTPFileEntryParser createMVSEntryParser()
public FTPFileEntryParser createNetwareFTPEntryParser()
public FTPFileEntryParser createNTFTPEntryParser()
public FTPFileEntryParser createOS2FTPEntryParser()
public FTPFileEntryParser createOS400FTPEntryParser()
public FTPFileEntryParser createUnixFTPEntryParser()
public FTPFileEntryParser createVMSVersioningFTPEntryParser()