@Test public void testCreateInputStream() throws IOException { GZIPCompressionProvider provider = (GZIPCompressionProvider) factory.getCompressionProviderByName( PROVIDER_NAME ); ByteArrayOutputStream baos = new ByteArrayOutputStream(); GZIPOutputStream gos = new GZIPOutputStream( baos ); byte[] testBytes = "Test".getBytes(); gos.write( testBytes ); ByteArrayInputStream in = new ByteArrayInputStream( baos.toByteArray() ); GZIPInputStream gis = new GZIPInputStream( in ); in = new ByteArrayInputStream( baos.toByteArray() ); GZIPCompressionInputStream ncis = provider.createInputStream( in ); assertNotNull( ncis ); GZIPCompressionInputStream ncis2 = provider.createInputStream( gis ); assertNotNull( ncis2 ); }
@Override public GZIPCompressionInputStream createInputStream( InputStream in ) throws IOException { return new GZIPCompressionInputStream( in, this ); }
GZIPCompressionProvider implements CompressionProvider { @Override public GZIPCompressionInputStream createInputStream( InputStream in ) throws IOException { return new GZIPCompressionInputStream( in, this ); } }
GZIPCompressionProvider implements CompressionProvider { @Override public GZIPCompressionInputStream createInputStream( InputStream in ) throws IOException { return new GZIPCompressionInputStream( in, this ); }  }
GZIPCompressionProvider implements CompressionProvider { @Override public GZIPCompressionInputStream createInputStream( InputStream in ) throws IOException { return new GZIPCompressionInputStream( in, 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 GZIPCompressionInputStream createInputStream( InputStream in ) throws IOException { return new GZIPCompressionInputStream( in, 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();  }