Skip to content

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

Added some JavaDoc

luccioman938d8a9731ad
diff --git a/source/net/yacy/kelondro/util/FileUtils.java b/source/net/yacy/kelondro/util/FileUtils.java
index 5b5936878..4961b01b0 100644
--- a/source/net/yacy/kelondro/util/FileUtils.java
+++ b/source/net/yacy/kelondro/util/FileUtils.java
@@ -469,6 +469,15 @@ public final class FileUtils {
return source;
}
+ /**
+ * Generate a set of strings matching each line of the given file. Lines are
+ * lower cased and any eventual surrounding space characters are removed. Empty
+ * lines and lines starting with the '#' character are ignored.
+ *
+ * @param file
+ * a file to load
+ * @return a set of strings eventually empty
+ */
public static HashSet<String> loadList(final File file) {
final HashSet<String> set = new HashSet<String>();
BufferedReader br = null;