com.zehon.ftp
Class ZehonFTPFileEntryParserFactory

java.lang.Object
  extended by org.apache.commons.net.ftp.parser.DefaultFTPFileEntryParserFactory
      extended by com.zehon.ftp.ZehonFTPFileEntryParserFactory
All Implemented Interfaces:
org.apache.commons.net.ftp.parser.FTPFileEntryParserFactory

public class ZehonFTPFileEntryParserFactory
extends org.apache.commons.net.ftp.parser.DefaultFTPFileEntryParserFactory


Constructor Summary
ZehonFTPFileEntryParserFactory()
           
 
Method Summary
 org.apache.commons.net.ftp.FTPFileEntryParser createFileEntryParser(org.apache.commons.net.ftp.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.
 org.apache.commons.net.ftp.FTPFileEntryParser createFileEntryParser(java.lang.String key)
           
 
Methods inherited from class org.apache.commons.net.ftp.parser.DefaultFTPFileEntryParserFactory
createMVSEntryParser, createNetwareFTPEntryParser, createNTFTPEntryParser, createOS2FTPEntryParser, createOS400FTPEntryParser, createUnixFTPEntryParser, createVMSVersioningFTPEntryParser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZehonFTPFileEntryParserFactory

public ZehonFTPFileEntryParserFactory()
Method Detail

createFileEntryParser

public org.apache.commons.net.ftp.FTPFileEntryParser createFileEntryParser(java.lang.String key)
Specified by:
createFileEntryParser in interface org.apache.commons.net.ftp.parser.FTPFileEntryParserFactory
Overrides:
createFileEntryParser in class org.apache.commons.net.ftp.parser.DefaultFTPFileEntryParserFactory

createFileEntryParser

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

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.

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.

Specified by:
createFileEntryParser in interface org.apache.commons.net.ftp.parser.FTPFileEntryParserFactory
Overrides:
createFileEntryParser in class org.apache.commons.net.ftp.parser.DefaultFTPFileEntryParserFactory
Parameters:
config - A FTPClientConfig used to configure the parser created
Returns:
the @link FTPFileEntryParser FTPFileEntryParser} so created.
Throws:
org.apache.commons.net.ftp.parser.ParserInitializationException - Thrown on any exception in instantiation
Since:
1.4


Copyright 2009 Zehon Team. All Rights Reserved.