Beispiel #1
0
 public static void loadWarps(final File parent) throws IOException {
   try {
     final BufferedReader file =
         new BufferedReader(new FileReader(parent + File.separator + FILENAME));
     String nextLine;
     while ((nextLine = file.readLine()) != null) {
       WARPS.put(nextLine.split("\t")[0], new Warp(nextLine));
     }
     file.close();
   } catch (FileNotFoundException ex) {
   }
 }
Beispiel #2
0
 public static void addWarp(final Warp warp) {
   WARPS.put(warp.getName(), warp);
 }