@Test public void testClose() throws IOException { CompressionProvider provider = outStream.getCompressionProvider(); ByteArrayOutputStream out = new ByteArrayOutputStream(); outStream = new GZIPCompressionOutputStream( out, provider ) { }; outStream.close(); try { outStream.write( "This will throw an Exception if the stream is already closed".getBytes() ); fail(); } catch ( IOException e ) { } }
@Override public void close() throws IOException { GZIPOutputStream zos = (GZIPOutputStream) delegate; zos.close(); }
GZIPCompressionOutputStream extends CompressionOutputStream { @Override public void close() throws IOException { GZIPOutputStream zos = (GZIPOutputStream) delegate; zos.close(); } }
GZIPCompressionOutputStream extends CompressionOutputStream { @Override public void close() throws IOException { GZIPOutputStream zos = (GZIPOutputStream) delegate; zos.close(); } GZIPCompressionOutputStream( OutputStream out, CompressionProvider provider ); }
GZIPCompressionOutputStream extends CompressionOutputStream { @Override public void close() throws IOException { GZIPOutputStream zos = (GZIPOutputStream) delegate; zos.close(); } GZIPCompressionOutputStream( OutputStream out, CompressionProvider provider ); @Override void close(); }
GZIPCompressionOutputStream extends CompressionOutputStream { @Override public void close() throws IOException { GZIPOutputStream zos = (GZIPOutputStream) delegate; zos.close(); } GZIPCompressionOutputStream( OutputStream out, CompressionProvider provider ); @Override void close();  }