[jboss-cvs] JBossAS SVN: r91738 - projects/vfs/branches/dml-zip-rework/src/main/java/org/jboss/virtual/spi.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Jul 28 16:20:00 EDT 2009


Author: david.lloyd at jboss.com
Date: 2009-07-28 16:20:00 -0400 (Tue, 28 Jul 2009)
New Revision: 91738

Modified:
   projects/vfs/branches/dml-zip-rework/src/main/java/org/jboss/virtual/spi/FileSystem.java
Log:
Javadoc

Modified: projects/vfs/branches/dml-zip-rework/src/main/java/org/jboss/virtual/spi/FileSystem.java
===================================================================
--- projects/vfs/branches/dml-zip-rework/src/main/java/org/jboss/virtual/spi/FileSystem.java	2009-07-28 20:15:48 UTC (rev 91737)
+++ projects/vfs/branches/dml-zip-rework/src/main/java/org/jboss/virtual/spi/FileSystem.java	2009-07-28 20:20:00 UTC (rev 91738)
@@ -29,7 +29,6 @@
 import java.io.Closeable;
 import java.io.InputStream;
 import java.util.List;
-import java.util.Iterator;
 
 /**
  * A file system which is mounted in to the VFS.  This is the driver class for a given virtual file system type.  An
@@ -71,14 +70,54 @@
     */
    boolean isReadOnly();
 
+   /**
+    * Attempt to delete a virtual file within this filesystem.
+    *
+    * @param mountPoint the mount point of the filesystem instance (guaranteed to be a parent of {@code target})
+    * @param target the virtual file to act upon
+    * @return {@code true} if the file was deleted, {@code false} if it failed for any reason
+    * @throws IOException if an I/O error occurs
+    */
    boolean delete(VirtualFile mountPoint, VirtualFile target) throws IOException;
 
+   /**
+    * Get the size of a virtual file within this filesystem.
+    *
+    * @param mountPoint the mount point of the filesystem instance (guaranteed to be a parent of {@code target})
+    * @param target the virtual file to act upon
+    * @return the size, in bytes
+    * @throws IOException if an I/O error occurs
+    */
    long getSize(VirtualFile mountPoint, VirtualFile target) throws IOException;
 
+   /**
+    * Get the last modification time of a virtual file within this filesystem.
+    *
+    * @param mountPoint the mount point of the filesystem instance (guaranteed to be a parent of {@code target})
+    * @param target the virtual file to act upon
+    * @return the modification time in milliseconds
+    * @throws IOException if an I/O error occurs
+    */
    long getLastModified(VirtualFile mountPoint, VirtualFile target) throws IOException;
 
+   /**
+    * Ascertain the existance of a virtual file within this filesystem.
+    *
+    * @param mountPoint the mount point of the filesystem instance (guaranteed to be a parent of {@code target})
+    * @param target the virtual file to act upon
+    * @return {@code true} if the file exists, {@code false} otherwise
+    * @throws IOException if an I/O error occurs
+    */
    boolean exists(VirtualFile mountPoint, VirtualFile target) throws IOException;
 
+   /**
+    * Ascertain whether a virtual file within this filesystem is a directory.
+    *
+    * @param mountPoint the mount point of the filesystem instance (guaranteed to be a parent of {@code target})
+    * @param target the virtual file to act upon
+    * @return {@code true} if the file exists and is a directory, {@code false} otherwise
+    * @throws IOException if an I/O error occurs
+    */
    boolean isDirectory(VirtualFile mountPoint, VirtualFile target) throws IOException;
 
    /**




More information about the jboss-cvs-commits mailing list