示例#1
0
 // Ende des Dokuments
 public void endDocument() {
   try {
     f.close();
   } catch (IOException e) {
     EfaUtil.foo();
   }
 }
示例#2
0
  private void escribeArchivo(List<String> lista, String ruta) {
    try {

      BufferedWriter escritor = new BufferedWriter(new FileWriter(ruta));

      for (String s : lista) {
        escritor.write(s);
      }

      escritor.close();

    } catch (IOException ex) {
      Logger.getLogger(Reportador.class.getName()).log(Level.SEVERE, null, ex);
    }
  }