commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ima...@apache.org
Subject cvs commit: jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/ftp FtpClientFactory.java FtpFileObject.java FtpFileSystemConfigBuilder.java
Date Mon, 20 Sep 2004 11:31:53 GMT
imario      2004/09/20 04:31:53

  Modified:    vfs/src/java/org/apache/commons/vfs/provider/ftp
                        FtpClientFactory.java FtpFileObject.java
                        FtpFileSystemConfigBuilder.java
  Log:
  As pointed out by Steve Cohen - shortened names
  setFTPFileEntryParserFactoryKey() to setEntryParserFactoryKey()
  and
  setFTPFileEntryParserFactory() to setEntryParserFactory()
  
  Revision  Changes    Path
  1.3       +2 -2      jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/ftp/FtpClientFactory.java
  
  Index: FtpClientFactory.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/ftp/FtpClientFactory.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- FtpClientFactory.java	26 Aug 2004 16:37:55 -0000	1.2
  +++ FtpClientFactory.java	20 Sep 2004 11:31:53 -0000	1.3
  @@ -56,7 +56,7 @@
           {
               final FTPClient client = new FTPClient();
   
  -            FTPFileEntryParserFactory myFactory = FtpFileSystemConfigBuilder.getInstance().getFTPFileEntryParserFactory(fileSystemOptions);
  +            FTPFileEntryParserFactory myFactory = FtpFileSystemConfigBuilder.getInstance().getEntryParserFactory(fileSystemOptions);
               if (myFactory != null)
               {
                   client.setParserFactory(myFactory);
  
  
  
  1.27      +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.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- FtpFileObject.java	19 Sep 2004 18:23:48 -0000	1.26
  +++ FtpFileObject.java	20 Sep 2004 11:31:53 -0000	1.27
  @@ -114,7 +114,7 @@
           final FTPClient client = ftpFs.getClient();
           try
           {
  -            String key = FtpFileSystemConfigBuilder.getInstance().getFTPFileEntryParserFactoryKey(getFileSystem().getFileSystemOptions());
  +            String key = FtpFileSystemConfigBuilder.getInstance().getEntryParserFactoryKey(getFileSystem().getFileSystemOptions());
               final FTPFile[] tmpChildren = client.listFiles(key, relPath);
               if (tmpChildren == null || tmpChildren.length == 0)
               {
  
  
  
  1.7       +7 -7      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.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- FtpFileSystemConfigBuilder.java	19 Sep 2004 18:23:48 -0000	1.6
  +++ FtpFileSystemConfigBuilder.java	20 Sep 2004 11:31:53 -0000	1.7
  @@ -46,7 +46,7 @@
        * @param opts
        * @param factory instance of your factory
        */
  -    public void setFTPFileEntryParserFactory(FileSystemOptions opts, FTPFileEntryParserFactory
factory)
  +    public void setEntryParserFactory(FileSystemOptions opts, FTPFileEntryParserFactory
factory)
       {
           setParam(opts, FTPFileEntryParserFactory.class.getName(), factory);
       }
  @@ -54,9 +54,9 @@
       /**
        * @param opts
        * @return
  -     * @see #setFTPFileEntryParserFactory
  +     * @see #setEntryParserFactory
        */
  -    public FTPFileEntryParserFactory getFTPFileEntryParserFactory(FileSystemOptions opts)
  +    public FTPFileEntryParserFactory getEntryParserFactory(FileSystemOptions opts)
       {
           return (FTPFileEntryParserFactory) getParam(opts, FTPFileEntryParserFactory.class.getName());
       }
  @@ -68,7 +68,7 @@
        * @param opts
        * @param key
        */
  -    public void setFTPFileEntryParserFactoryKey(FileSystemOptions opts, String key)
  +    public void setEntryParserFactoryKey(FileSystemOptions opts, String key)
       {
           setParam(opts, FACTORY_KEY, key);
       }
  @@ -76,9 +76,9 @@
       /**
        * @param opts
        * @return
  -     * @see #setFTPFileEntryParserFactoryKey
  +     * @see #setEntryParserFactoryKey
        */
  -    public String getFTPFileEntryParserFactoryKey(FileSystemOptions opts)
  +    public String getEntryParserFactoryKey(FileSystemOptions opts)
       {
           return (String) getParam(opts, FACTORY_KEY);
       }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message