Method Summary |
|
public static String | collection2string(Collection<String> col) Simple conversion of a Collection of Strings to a comma separated String.
If the implementing Collection subclass guaranties an order of its elements,
the substrings of the result will have the same order.
Parameters: col - a Collection of Strings. |
public static String[] | getDirListing(String dirname) |
public static String[] | getDirListing(File dir) Read content of a directory into a String array of file names.
Parameters: dir - The directory to get the file listing from. |
public static ArrayList<File> | getDirsRecursive(File dir, String notdir) |
public static ArrayList<File> | getDirsRecursive(File dir, String notdir, boolean excludeDotfiles) |
public static ArrayList<String> | getListArray(File listFile) Read lines of a file into an ArrayList. |
public static Set<String> | getListSet(String setName) Get ListSet from configuration file and return it as a unified Set.
Meaning of ListSet: There are various "lists" in YaCy which are
actually disjunct (pairwise unequal) sets which themselves can be seperated
into different subsets. |
public static String | getListString(String filename, boolean withcomments) |
public static String | getListString(File listFile, boolean withcomments) Read lines of a text file into a String, optionally ignoring comments.
Parameters: listFile - the File to read from. Parameters: withcomments - If false ignore lines starting with '#'. |
public static boolean | listSetContains(String setName, String listName) Parameters: setName - ListSet in which to search for an element. Parameters: listName - the element to search for. |
public static void | reloadBlacklists() |
public static void | removeFromListSet(String setName, String listName) Removes an element from a ListSet and updates the configuration file
accordingly. |
public static ArrayList<String> | string2arraylist(String string) |
public static Set<String> | string2set(String string) Simple conversion of a comma separated list to a unified Set. |
public static Vector<String> | string2vector(String string) Simple conversion of a comma separated list to a Vector containing
the order of the substrings. |
public static void | updateListSet(String setName, String newListName) Adds an element to an existing ListSet. |
public static boolean | writeList(File listFile, String out) Write a String to a file (used for string representation of lists). |
public static boolean | writeList(File listFile, String[] list) Write elements of an Array of Strings to a file (one element per line). |