From 938d8a9731ad5bf611f2e715c20ce6791cf6a3ea Mon Sep 17 00:00:00 2001 From: luccioman Date: Tue, 14 Nov 2017 09:24:13 +0100 Subject: [PATCH] Added some JavaDoc --- source/net/yacy/kelondro/util/FileUtils.java | 9 +++++++++ 1 file changed, 9 insertions(+) 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 loadList(final File file) { final HashSet set = new HashSet(); BufferedReader br = null;