public interface FTPFileEntryParserFactory
Modifier and Type | Method and Description |
---|---|
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. |
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) 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.
config
- A FTPClientConfig
used to configure the parser createdParserInitializationException
- Thrown on any exception in instantiationFTPFileEntryParser createFileEntryParser(String key) throws ParserInitializationException
key
- A string that somehow identifies an FTPFileEntryParser to be created.ParserInitializationException
- Thrown on any exception in instantiationCopyright © 2001–2022 The Apache Software Foundation. All rights reserved.