Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.commons.net.ftp.parser
Class ConfigurableFTPFileEntryParserImpl  view ConfigurableFTPFileEntryParserImpl download ConfigurableFTPFileEntryParserImpl.java

java.lang.Object
  extended byorg.apache.commons.net.ftp.FTPFileEntryParserImpl
      extended byorg.apache.commons.net.ftp.parser.RegexFTPFileEntryParserImpl
          extended byorg.apache.commons.net.ftp.parser.ConfigurableFTPFileEntryParserImpl
All Implemented Interfaces:
org.apache.commons.net.ftp.Configurable, org.apache.commons.net.ftp.FTPFileEntryParser, org.apache.commons.net.ftp.FTPFileListParser
Direct Known Subclasses:
MVSFTPEntryParser, NTFTPEntryParser, OS2FTPEntryParser, OS400FTPEntryParser, UnixFTPEntryParser, VMSFTPEntryParser

public abstract class ConfigurableFTPFileEntryParserImpl
extends RegexFTPFileEntryParserImpl
implements org.apache.commons.net.ftp.Configurable

To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates - Comments


Field Summary
private  FTPTimestampParser timestampParser
           
 
Fields inherited from class org.apache.commons.net.ftp.parser.RegexFTPFileEntryParserImpl
_matcher_
 
Constructor Summary
ConfigurableFTPFileEntryParserImpl(java.lang.String regex)
          Only constructor for this absract class.
 
Method Summary
 void configure(org.apache.commons.net.ftp.FTPClientConfig config)
          Implementation of the Configurable interface.
protected abstract  org.apache.commons.net.ftp.FTPClientConfig getDefaultConfiguration()
          Each concrete subclass must define this member to create a default configuration to be used when that subclass is instantiated without a FTPClientConfig parameter being specified.
 java.util.Calendar parseTimestamp(java.lang.String timestampStr)
          This method is called by the concrete parsers to delegate timestamp parsing to the timestamp parser.
 
Methods inherited from class org.apache.commons.net.ftp.parser.RegexFTPFileEntryParserImpl
getGroupCnt, getGroupsAsString, group, matches
 
Methods inherited from class org.apache.commons.net.ftp.FTPFileEntryParserImpl
parseFileList, parseFileList, preParse, readNextEntry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.commons.net.ftp.FTPFileEntryParser
parseFTPEntry
 

Field Detail

timestampParser

private FTPTimestampParser timestampParser
Constructor Detail

ConfigurableFTPFileEntryParserImpl

public ConfigurableFTPFileEntryParserImpl(java.lang.String regex)
Only constructor for this absract class.

Method Detail

parseTimestamp

public java.util.Calendar parseTimestamp(java.lang.String timestampStr)
                                  throws java.text.ParseException
This method is called by the concrete parsers to delegate timestamp parsing to the timestamp parser.


configure

public void configure(org.apache.commons.net.ftp.FTPClientConfig config)
Implementation of the Configurable interface. Configures this parser by delegating to the underlying Configurable FTPTimestampParser implementation, ' passing it the supplied FTPClientConfig if that is non-null or a default configuration defined by each concrete subclass.

Specified by:
configure in interface org.apache.commons.net.ftp.Configurable

getDefaultConfiguration

protected abstract org.apache.commons.net.ftp.FTPClientConfig getDefaultConfiguration()
Each concrete subclass must define this member to create a default configuration to be used when that subclass is instantiated without a FTPClientConfig parameter being specified.