commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ima...@apache.org
Subject svn commit: r160281 - jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/provider/local/DefaultLocalFileProvider.java
Date Wed, 06 Apr 2005 10:25:16 GMT
Author: imario
Date: Wed Apr  6 03:25:15 2005
New Revision: 160281

URL: http://svn.apache.org/viewcvs?view=rev&rev=160281
Log:
use setFileNameParser instead of own local class member

Modified:
    jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/provider/local/DefaultLocalFileProvider.java

Modified: jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/provider/local/DefaultLocalFileProvider.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/provider/local/DefaultLocalFileProvider.java?view=diff&r1=160280&r2=160281
==============================================================================
--- jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/provider/local/DefaultLocalFileProvider.java
(original)
+++ jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/provider/local/DefaultLocalFileProvider.java
Wed Apr  6 03:25:15 2005
@@ -59,19 +59,17 @@
         Capability.RANDOM_ACCESS_WRITE
     }));
 
-    private final LocalFileNameParser parser;
-
     public DefaultLocalFileProvider()
     {
         super();
 
         if (Os.isFamily(Os.OS_FAMILY_WINDOWS))
         {
-            parser = new WindowsFileNameParser();
+            setFileNameParser(new WindowsFileNameParser());
         }
         else
         {
-            parser = new GenericFileNameParser();
+            setFileNameParser(new GenericFileNameParser());
         }
     }
 
@@ -80,7 +78,7 @@
      */
     public boolean isAbsoluteLocalName(final String name)
     {
-        return parser.isAbsoluteName(name);
+        return ((LocalFileNameParser) getFileNameParser()).isAbsoluteName(name);
     }
 
     /**



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