/** * Compresses all remaining data and writes it to the stream, * doesn't close the underlying stream. * @throws IOException if an error occurs */ public void finish() throws IOException { if (!finished) { if (currentIndex > 0) { flushBlock(); } writeTrailer(); finished = true; } }
/** * Compresses all remaining data and writes it to the stream, * doesn't close the underlying stream. * @throws IOException if an error occurs */ public void finish() throws IOException { if (!finished) { if (currentIndex > 0) { flushBlock(); } writeTrailer(); finished = true; } }