@Test public void testSave() throws Exception { }
public void save(File file) throws IOException, ParserConfigurationException, TransformerConfigurationException { FileOutputStream fo = null; GZIPOutputStream go = null; OutputStreamWriter io = null; PrintWriter pw = null; try { fo = new FileOutputStream(file); go = new GZIPOutputStream(fo); io = new OutputStreamWriter(go); pw = new PrintWriter(io, true); writer = new PirasoEntryWriter(reader.getId(), reader.getWatchedAddr(), pw); manager.visit(requests, this); } finally { IOUtils.closeQuietly(writer); IOUtils.closeQuietly(pw); IOUtils.closeQuietly(io); IOUtils.closeQuietly(go); IOUtils.closeQuietly(fo); } }
FileEntrySave implements IOEntryVisitor { public void save(File file) throws IOException, ParserConfigurationException, TransformerConfigurationException { FileOutputStream fo = null; GZIPOutputStream go = null; OutputStreamWriter io = null; PrintWriter pw = null; try { fo = new FileOutputStream(file); go = new GZIPOutputStream(fo); io = new OutputStreamWriter(go); pw = new PrintWriter(io, true); writer = new PirasoEntryWriter(reader.getId(), reader.getWatchedAddr(), pw); manager.visit(requests, this); } finally { IOUtils.closeQuietly(writer); IOUtils.closeQuietly(pw); IOUtils.closeQuietly(io); IOUtils.closeQuietly(go); IOUtils.closeQuietly(fo); } } }
FileEntrySave implements IOEntryVisitor { public void save(File file) throws IOException, ParserConfigurationException, TransformerConfigurationException { FileOutputStream fo = null; GZIPOutputStream go = null; OutputStreamWriter io = null; PrintWriter pw = null; try { fo = new FileOutputStream(file); go = new GZIPOutputStream(fo); io = new OutputStreamWriter(go); pw = new PrintWriter(io, true); writer = new PirasoEntryWriter(reader.getId(), reader.getWatchedAddr(), pw); manager.visit(requests, this); } finally { IOUtils.closeQuietly(writer); IOUtils.closeQuietly(pw); IOUtils.closeQuietly(io); IOUtils.closeQuietly(go); IOUtils.closeQuietly(fo); } } FileEntrySave(IOEntryReader reader); }
FileEntrySave implements IOEntryVisitor { public void save(File file) throws IOException, ParserConfigurationException, TransformerConfigurationException { FileOutputStream fo = null; GZIPOutputStream go = null; OutputStreamWriter io = null; PrintWriter pw = null; try { fo = new FileOutputStream(file); go = new GZIPOutputStream(fo); io = new OutputStreamWriter(go); pw = new PrintWriter(io, true); writer = new PirasoEntryWriter(reader.getId(), reader.getWatchedAddr(), pw); manager.visit(requests, this); } finally { IOUtils.closeQuietly(writer); IOUtils.closeQuietly(pw); IOUtils.closeQuietly(io); IOUtils.closeQuietly(go); IOUtils.closeQuietly(fo); } } FileEntrySave(IOEntryReader reader); void addRequest(Long id); void save(File file); void visit(IOEntry entry); }
FileEntrySave implements IOEntryVisitor { public void save(File file) throws IOException, ParserConfigurationException, TransformerConfigurationException { FileOutputStream fo = null; GZIPOutputStream go = null; OutputStreamWriter io = null; PrintWriter pw = null; try { fo = new FileOutputStream(file); go = new GZIPOutputStream(fo); io = new OutputStreamWriter(go); pw = new PrintWriter(io, true); writer = new PirasoEntryWriter(reader.getId(), reader.getWatchedAddr(), pw); manager.visit(requests, this); } finally { IOUtils.closeQuietly(writer); IOUtils.closeQuietly(pw); IOUtils.closeQuietly(io); IOUtils.closeQuietly(go); IOUtils.closeQuietly(fo); } } FileEntrySave(IOEntryReader reader); void addRequest(Long id); void save(File file); void visit(IOEntry entry);  }