commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adammurd...@apache.org
Subject cvs commit: jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/zip ZipFileSystem.java
Date Thu, 23 Jan 2003 04:37:23 GMT
adammurdoch    2003/01/22 20:37:23

  Modified:    vfs/src/java/org/apache/commons/vfs Capability.java
               vfs/src/java/org/apache/commons/vfs/impl
                        VirtualFileSystem.java
               vfs/src/java/org/apache/commons/vfs/provider/ftp
                        FtpFileSystem.java
               vfs/src/java/org/apache/commons/vfs/provider/local
                        LocalFileSystem.java
               vfs/src/java/org/apache/commons/vfs/provider/smb
                        SmbFileSystem.java
               vfs/src/java/org/apache/commons/vfs/provider/zip
                        ZipFileSystem.java
  Log:
  Added GET_TYPE capability, which indicates that a file system can determine file type.
  
  Revision  Changes    Path
  1.3       +7 -4      jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/Capability.java
  
  Index: Capability.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/Capability.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Capability.java	25 Nov 2002 05:37:13 -0000	1.2
  +++ Capability.java	23 Jan 2003 04:37:22 -0000	1.3
  @@ -78,13 +78,16 @@
       /** File content signing is supported. */
       public static final Capability SIGNING = new Capability( "SIGNING" );
   
  -    /** File can be created. */
  +    /** Files can be created. */
       public static final Capability CREATE = new Capability( "CREATE" );
   
  -    /** File can be deleted. */
  +    /** Files can be deleted. */
       public static final Capability DELETE = new Capability( "DELETE" );
   
  -    /** Children of file can be listed. */
  +    /** The file type can be determined. */
  +    public static final Capability GET_TYPE = new Capability( "GET_TYPE" );
  +
  +    /** Children of files can be listed. */
       public static final Capability LIST_CHILDREN = new Capability( "LIST_CHILDREN" );
   
       /**
  
  
  
  1.4       +2 -1      jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/impl/VirtualFileSystem.java
  
  Index: VirtualFileSystem.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/impl/VirtualFileSystem.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- VirtualFileSystem.java	23 Nov 2002 00:33:52 -0000	1.3
  +++ VirtualFileSystem.java	23 Jan 2003 04:37:22 -0000	1.4
  @@ -95,6 +95,7 @@
           caps.add( Capability.ATTRIBUTES );
           caps.add( Capability.CREATE );
           caps.add( Capability.DELETE );
  +        caps.add( Capability.GET_TYPE );
           caps.add( Capability.JUNCTIONS );
           caps.add( Capability.LAST_MODIFIED );
           caps.add( Capability.LIST_CHILDREN );
  
  
  
  1.15      +1 -0      jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/ftp/FtpFileSystem.java
  
  Index: FtpFileSystem.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/ftp/FtpFileSystem.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- FtpFileSystem.java	21 Jan 2003 23:51:24 -0000	1.14
  +++ FtpFileSystem.java	23 Jan 2003 04:37:22 -0000	1.15
  @@ -112,6 +112,7 @@
       {
           caps.add( Capability.CREATE );
           caps.add( Capability.DELETE );
  +        caps.add( Capability.GET_TYPE );
           caps.add( Capability.LIST_CHILDREN );
           caps.add( Capability.READ_CONTENT );
           caps.add( Capability.URI );
  
  
  
  1.13      +1 -0      jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/local/LocalFileSystem.java
  
  Index: LocalFileSystem.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/local/LocalFileSystem.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- LocalFileSystem.java	23 Nov 2002 00:33:53 -0000	1.12
  +++ LocalFileSystem.java	23 Jan 2003 04:37:22 -0000	1.13
  @@ -103,6 +103,7 @@
       {
           caps.add( Capability.CREATE );
           caps.add( Capability.DELETE );
  +        caps.add( Capability.GET_TYPE );
           caps.add( Capability.LAST_MODIFIED );
           caps.add( Capability.LIST_CHILDREN );
           caps.add( Capability.READ_CONTENT );
  
  
  
  1.12      +1 -0      jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/smb/SmbFileSystem.java
  
  Index: SmbFileSystem.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/smb/SmbFileSystem.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- SmbFileSystem.java	23 Nov 2002 00:33:53 -0000	1.11
  +++ SmbFileSystem.java	23 Jan 2003 04:37:22 -0000	1.12
  @@ -93,6 +93,7 @@
       {
           caps.add( Capability.CREATE );
           caps.add( Capability.DELETE );
  +        caps.add( Capability.GET_TYPE );
           caps.add( Capability.LIST_CHILDREN );
           caps.add( Capability.READ_CONTENT );
           caps.add( Capability.URI );
  
  
  
  1.18      +1 -0      jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/zip/ZipFileSystem.java
  
  Index: ZipFileSystem.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/zip/ZipFileSystem.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- ZipFileSystem.java	23 Nov 2002 00:33:54 -0000	1.17
  +++ ZipFileSystem.java	23 Jan 2003 04:37:23 -0000	1.18
  @@ -186,6 +186,7 @@
       protected void addCapabilities( final Collection caps )
       {
           caps.add( Capability.LAST_MODIFIED );
  +        caps.add( Capability.GET_TYPE );
           caps.add( Capability.LIST_CHILDREN );
           caps.add( Capability.READ_CONTENT );
           caps.add( Capability.URI );
  
  
  

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


Mime
View raw message