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/url UrlFileProvider.java
Date Mon, 20 Sep 2004 11:32:42 GMT
imario      2004/09/20 04:32:42

  Modified:    vfs/src/java/org/apache/commons/vfs/provider/res
                        ResourceFileProvider.java
               vfs/src/java/org/apache/commons/vfs/provider/url
                        UrlFileProvider.java
  Added:       vfs/src/java/org/apache/commons/vfs/provider/res
                        ResourceFileSystemConfigBuilder.java
  Removed:     vfs/src/java/org/apache/commons/vfs/provider/res
                        ResourcelFileSystemConfigBuilder.java
  Log:
  typo - rename ResourcelFileSystemConfigBuilder to ResourceFileSystemConfigBuilder
  
  Revision  Changes    Path
  1.4       +3 -3      jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/res/ResourceFileProvider.java
  
  Index: ResourceFileProvider.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/res/ResourceFileProvider.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ResourceFileProvider.java	9 Jul 2004 21:02:52 -0000	1.3
  +++ ResourceFileProvider.java	20 Sep 2004 11:32:42 -0000	1.4
  @@ -59,7 +59,7 @@
           UriParser.extractScheme(uri, buf);
           String resourceName = buf.toString();
   
  -        ClassLoader cl = ResourcelFileSystemConfigBuilder.getInstance().getClassLoader(fileSystemOptions);
  +        ClassLoader cl = ResourceFileSystemConfigBuilder.getInstance().getClassLoader(fileSystemOptions);
           if (cl == null)
           {
               cl = getClass().getClassLoader();
  @@ -77,7 +77,7 @@
   
       public FileSystemConfigBuilder getConfigBuilder()
       {
  -        return org.apache.commons.vfs.provider.res.ResourcelFileSystemConfigBuilder.getInstance();
  +        return org.apache.commons.vfs.provider.res.ResourceFileSystemConfigBuilder.getInstance();
       }
   
       public void closeFileSystem(FileSystem filesystem)
  
  
  
  1.1                  jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/res/ResourceFileSystemConfigBuilder.java
  
  Index: ResourceFileSystemConfigBuilder.java
  ===================================================================
  /*
   * Copyright 2002, 2003,2004 The Apache Software Foundation.
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *      http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  package org.apache.commons.vfs.provider.res;
  
  import org.apache.commons.vfs.FileSystemConfigBuilder;
  import org.apache.commons.vfs.FileSystemOptions;
  import org.apache.commons.vfs.provider.url.UrlFileSystem;
  
  /**
   * The config builder for various ftp configuration options
   *
   * @author <a href="mailto:imario@apache.org">Mario Ivankovits</a>
   * @version $Revision: 1.1 $ $Date: 2004/09/20 11:32:42 $
   */
  public class ResourceFileSystemConfigBuilder extends FileSystemConfigBuilder
  {
      private final static ResourceFileSystemConfigBuilder builder = new ResourceFileSystemConfigBuilder();
  
      public static ResourceFileSystemConfigBuilder getInstance()
      {
          return builder;
      }
  
      private ResourceFileSystemConfigBuilder()
      {
      }
  
      public void setClassLoader(FileSystemOptions opts, ClassLoader classLoader)
      {
          setParam(opts, ClassLoader.class.getName(), classLoader);
      }
  
      public ClassLoader getClassLoader(FileSystemOptions opts)
      {
          return (ClassLoader) getParam(opts, ClassLoader.class.getName());
      }
  
      protected Class getConfigClass()
      {
          return UrlFileSystem.class;
      }
  }
  
  
  
  1.24      +5 -5      jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/url/UrlFileProvider.java
  
  Index: UrlFileProvider.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/url/UrlFileProvider.java,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- UrlFileProvider.java	26 Aug 2004 16:44:38 -0000	1.23
  +++ UrlFileProvider.java	20 Sep 2004 11:32:42 -0000	1.24
  @@ -1,12 +1,12 @@
   /*
    * Copyright 2002, 2003,2004 The Apache Software Foundation.
  - * 
  + *
    * Licensed under the Apache License, Version 2.0 (the "License");
    * you may not use this file except in compliance with the License.
    * You may obtain a copy of the License at
  - * 
  + *
    *      http://www.apache.org/licenses/LICENSE-2.0
  - * 
  + *
    * Unless required by applicable law or agreed to in writing, software
    * distributed under the License is distributed on an "AS IS" BASIS,
    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  @@ -84,7 +84,7 @@
   
       public FileSystemConfigBuilder getConfigBuilder()
       {
  -        return org.apache.commons.vfs.provider.res.ResourcelFileSystemConfigBuilder.getInstance();
  +        return org.apache.commons.vfs.provider.res.ResourceFileSystemConfigBuilder.getInstance();
       }
   
       public Collection getCapabilities()
  
  
  

---------------------------------------------------------------------
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