// Ende des Dokuments public void endDocument() { try { f.close(); } catch (IOException e) { EfaUtil.foo(); } }
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); } }