imario      2004/05/08 13:04:02

  Modified:    vfs/src/java/org/apache/commons/vfs FileObject.java
  Log:
  added canRenameTo(FileObject)
  
  Revision  Changes    Path
  1.24      +8 -0      
jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/FileObject.java
  
  Index: FileObject.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/FileObject.java,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- FileObject.java   3 May 2004 19:48:48 -0000       1.23
  +++ FileObject.java   8 May 2004 20:04:02 -0000       1.24
  @@ -261,6 +261,14 @@
           throws FileSystemException;
   
       /**
  +     * Queries the file if it is possible to rename it to newfile.
  +     *
  +     * @param newfile the new file(-name)
  +     * @return true it this is the case
  +     */
  +    public boolean canRenameTo(FileObject newfile);
  +
  +    /**
        * Returns this file's content.  The [EMAIL PROTECTED] FileContent} returned by 
this
        * method can be used to read and write the content of the file.
        * <p/>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to