@Test public final void testSaveWriter() throws IOException { final ZipUTF8WriterBuilderImpl zb = PowerMock.createMock(ZipUTF8WriterBuilderImpl.class); final ZipUTF8Writer z = PowerMock.createMock(ZipUTF8Writer.class); final File temp = File.createTempFile("tempfile", ".tmp"); PowerMock.resetAll(); TestHelper.initMockDocument(this.odsElements); EasyMock.expect(zb.build(EasyMock.isA(FileOutputStream.class))).andReturn(z); this.odsElements.saveAsync(); PowerMock.replayAll(); final NamedOdsDocument document = this.getNamedDocument(); final NamedOdsFileWriter writer = new OdsFileWriterBuilder(this.logger, document).zipBuilder(zb) .file(temp.getAbsolutePath()).build(); writer.save(); PowerMock.verifyAll(); }
public void save(final OutputStream out) throws IOException { final ZipUTF8Writer writer = ZipUTF8WriterImpl.builder().build(out); this.save(writer); writer.finish(); writer.flush(); }
AnonymousOdsFileWriter { public void save(final OutputStream out) throws IOException { final ZipUTF8Writer writer = ZipUTF8WriterImpl.builder().build(out); this.save(writer); writer.finish(); writer.flush(); } }
AnonymousOdsFileWriter { public void save(final OutputStream out) throws IOException { final ZipUTF8Writer writer = ZipUTF8WriterImpl.builder().build(out); this.save(writer); writer.finish(); writer.flush(); } AnonymousOdsFileWriter(final Logger logger, final AnonymousOdsDocument document); }
AnonymousOdsFileWriter { public void save(final OutputStream out) throws IOException { final ZipUTF8Writer writer = ZipUTF8WriterImpl.builder().build(out); this.save(writer); writer.finish(); writer.flush(); } AnonymousOdsFileWriter(final Logger logger, final AnonymousOdsDocument document); OdsDocument document(); void save(final OutputStream out); @Deprecated void save(final OutputStream out, final ZipUTF8WriterBuilderImpl builder); void save(final ZipUTF8Writer writer); void saveAs(final String filename); void saveAs(final File file); void saveAs(final String filename, final ZipUTF8WriterBuilder builder); void saveAs(final File file, final ZipUTF8WriterBuilder builder); }
AnonymousOdsFileWriter { public void save(final OutputStream out) throws IOException { final ZipUTF8Writer writer = ZipUTF8WriterImpl.builder().build(out); this.save(writer); writer.finish(); writer.flush(); } AnonymousOdsFileWriter(final Logger logger, final AnonymousOdsDocument document); OdsDocument document(); void save(final OutputStream out); @Deprecated void save(final OutputStream out, final ZipUTF8WriterBuilderImpl builder); void save(final ZipUTF8Writer writer); void saveAs(final String filename); void saveAs(final File file); void saveAs(final String filename, final ZipUTF8WriterBuilder builder); void saveAs(final File file, final ZipUTF8WriterBuilder builder);  }