Permalink
Browse files

Added some JavaDoc

  • Loading branch information...
luccioman committed Nov 14, 2017
1 parent c32ac9c commit 938d8a9731ad5bf611f2e715c20ce6791cf6a3ea
Showing with 9 additions and 0 deletions.
  1. +9 −0 source/net/yacy/kelondro/util/FileUtils.java
@@ -469,6 +469,15 @@ public static void copy(final byte[] source, final File dest) throws IOException
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;

0 comments on commit 938d8a9

Please sign in to comment.