Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

Updated javadocs : warning about closing stream responsibility.

lucciomanee92082a3b1e
diff --git a/source/net/yacy/kelondro/util/FileUtils.java b/source/net/yacy/kelondro/util/FileUtils.java
index c9e8564fb..ebb135567 100644
--- a/source/net/yacy/kelondro/util/FileUtils.java
+++ b/source/net/yacy/kelondro/util/FileUtils.java
@@ -74,7 +74,7 @@ public final class FileUtils {
}
/**
- * Copies an InputStream to an OutputStream.
+ * Copies an InputStream to an OutputStream. Important : it is the responsibility of the caller to close the input and output streams.
*
* @param source InputStream
* @param dest OutputStream
@@ -165,7 +165,7 @@ public final class FileUtils {
}
/**
- * Copies an InputStream to a File.
+ * Copies an InputStream to a File. Important : it is the responsibility of the caller to close the source stream.
*
* @param source InputStream
* @param dest File
@@ -235,7 +235,7 @@ public final class FileUtils {
}
/**
- * Copies a File to an OutputStream.
+ * Copies a File to an OutputStream. Important : it is the responsibility of the caller to close the output stream.
*
* @param source File
* @param dest OutputStream