imario      2004/09/20 22:32:56

  Modified:    vfs/src/java/org/apache/commons/vfs/provider/ftp
                        FtpFileObject.java FtpFileSystemConfigBuilder.java
  Log:
  i promise - the last name change, but steve convinced me not to overcomplicate 
things. And for sure, now it might be more transparent for the user.
  
  Revision  Changes    Path
  1.28      +1 -1      
jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/ftp/FtpFileObject.java
  
  Index: FtpFileObject.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/ftp/FtpFileObject.java,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- FtpFileObject.java        20 Sep 2004 11:31:53 -0000      1.27
  +++ FtpFileObject.java        21 Sep 2004 05:32:56 -0000      1.28
  @@ -114,7 +114,7 @@
           final FTPClient client = ftpFs.getClient();
           try
           {
  -            String key = 
FtpFileSystemConfigBuilder.getInstance().getEntryParserFactoryKey(getFileSystem().getFileSystemOptions());
  +            String key = 
FtpFileSystemConfigBuilder.getInstance().getEntryParser(getFileSystem().getFileSystemOptions());
               final FTPFile[] tmpChildren = client.listFiles(key, relPath);
               if (tmpChildren == null || tmpChildren.length == 0)
               {
  
  
  
  1.8       +8 -6      
jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/ftp/FtpFileSystemConfigBuilder.java
  
  Index: FtpFileSystemConfigBuilder.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/ftp/FtpFileSystemConfigBuilder.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- FtpFileSystemConfigBuilder.java   20 Sep 2004 11:31:53 -0000      1.7
  +++ FtpFileSystemConfigBuilder.java   21 Sep 2004 05:32:56 -0000      1.8
  @@ -62,13 +62,15 @@
       }
   
       /**
  -     * set the key for using as argument to FTPFileEntryParserFactory.<br />
  -     * If you use the default implementation in commons-net and you set a FQCN, 
this class will be instantiated and used for ftp-entry parsing.<br />
  +     * set the FQCN of your FileEntryParser used to parse the directory listing 
from your server.<br />
  +     * <br />
  +     * <i>If you do not use the default commons-net FTPFileEntryParserFactory e.g. 
by using [EMAIL PROTECTED] #setEntryParserFactory}
  +     * this is the "key" parameter passed as argument into your custom factory</i>
        *
        * @param opts
        * @param key
        */
  -    public void setEntryParserFactoryKey(FileSystemOptions opts, String key)
  +    public void setEntryParser(FileSystemOptions opts, String key)
       {
           setParam(opts, FACTORY_KEY, key);
       }
  @@ -76,9 +78,9 @@
       /**
        * @param opts
        * @return
  -     * @see #setEntryParserFactoryKey
  +     * @see #setEntryParser
        */
  -    public String getEntryParserFactoryKey(FileSystemOptions opts)
  +    public String getEntryParser(FileSystemOptions opts)
       {
           return (String) getParam(opts, FACTORY_KEY);
       }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to