/**
  * 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();
 }
Esempio n. 2
0
 public void onMesg(ActivityMesg mesg) {
   csv.writeln();
 }
Esempio n. 3
0
 public void close() {
   csv.close();
 }