You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by ju...@apache.org on 2005/04/07 11:08:35 UTC
svn commit: r160390 -
incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/fs/local/FileUtil.java
Author: jukka
Date: Thu Apr 7 02:08:35 2005
New Revision: 160390
URL: http://svn.apache.org/viewcvs?view=rev&rev=160390
Log:
JCR-73: Improved FileUtil javadocs.
Modified:
incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/fs/local/FileUtil.java
Modified: incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/fs/local/FileUtil.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/fs/local/FileUtil.java?view=diff&r1=160389&r2=160390
==============================================================================
--- incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/fs/local/FileUtil.java (original)
+++ incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/fs/local/FileUtil.java Thu Apr 7 02:08:35 2005
@@ -22,9 +22,9 @@
import java.io.IOException;
/**
- * A <code>FileUtil</code> ...
+ * Static utility methods for recursively copying and deleting files and
+ * directories.
*/
-
public final class FileUtil {
/**
@@ -34,9 +34,12 @@
}
/**
- * @param src
- * @param dest
- * @throws IOException
+ * Recursively copies the given file or directory to the
+ * given destination.
+ *
+ * @param src source file or directory
+ * @param dest destination file or directory
+ * @throws IOException if the file or directory cannot be copied
*/
public static void copy(File src, File dest) throws IOException {
if (!src.canRead()) {
@@ -86,8 +89,10 @@
}
/**
- * @param f
- * @throws IOException
+ * Recursively deletes the given file or directory.
+ *
+ * @param f file or directory
+ * @throws IOException if the file or directory cannot be deleted
*/
public static void delete(File f) throws IOException {
if (f.isDirectory()) {