/**
  * Saves to videos.csv. Overwrites all content in file.
  *
  * @return
  * @throws IOException
  */
 public static void saveDB() throws IOException {
   File file = new File("src//videos.csv");
   if (file.exists()) file.delete();
   file.createNewFile();
   CSVWriter output = new CSVWriter(file);
   output.addDatum(toCSVString());
   output.finish();
 }
示例#2
0
 public void onMesg(ActivityMesg mesg) {
   csv.writeln();
 }
示例#3
0
 public void close() {
   csv.close();
 }