@Test public void testCreateOutputStream() throws IOException { GZIPCompressionProvider provider = (GZIPCompressionProvider) factory.getCompressionProviderByName( PROVIDER_NAME ); ByteArrayOutputStream out = new ByteArrayOutputStream(); GZIPOutputStream gos = new GZIPOutputStream( out ); GZIPCompressionOutputStream outStream = new GZIPCompressionOutputStream( out, provider ); assertNotNull( outStream ); out = new ByteArrayOutputStream(); GZIPCompressionOutputStream ncis = provider.createOutputStream( out ); assertNotNull( ncis ); GZIPCompressionOutputStream ncis2 = provider.createOutputStream( gos ); assertNotNull( ncis2 ); }
@Override public GZIPCompressionOutputStream createOutputStream( OutputStream out ) throws IOException { return new GZIPCompressionOutputStream( out, this ); }
GZIPCompressionProvider implements CompressionProvider { @Override public GZIPCompressionOutputStream createOutputStream( OutputStream out ) throws IOException { return new GZIPCompressionOutputStream( out, this ); } }
GZIPCompressionProvider implements CompressionProvider { @Override public GZIPCompressionOutputStream createOutputStream( OutputStream out ) throws IOException { return new GZIPCompressionOutputStream( out, this ); }  }
GZIPCompressionProvider implements CompressionProvider { @Override public GZIPCompressionOutputStream createOutputStream( OutputStream out ) throws IOException { return new GZIPCompressionOutputStream( out, this ); }  @Override GZIPCompressionInputStream createInputStream( InputStream in ); @Override boolean supportsInput(); @Override GZIPCompressionOutputStream createOutputStream( OutputStream out ); @Override boolean supportsOutput(); @Override String getDescription(); @Override String getName(); @Override String getDefaultExtension(); }
GZIPCompressionProvider implements CompressionProvider { @Override public GZIPCompressionOutputStream createOutputStream( OutputStream out ) throws IOException { return new GZIPCompressionOutputStream( out, this ); }  @Override GZIPCompressionInputStream createInputStream( InputStream in ); @Override boolean supportsInput(); @Override GZIPCompressionOutputStream createOutputStream( OutputStream out ); @Override boolean supportsOutput(); @Override String getDescription(); @Override String getName(); @Override String getDefaultExtension();  }