You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by im...@apache.org on 2004/05/08 22:04:02 UTC

cvs commit: jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs FileObject.java

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 {@link FileContent} returned by this
        * method can be used to read and write the content of the file.
        * <p/>
  
  
  

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