src/main/java/org/codehaus/plexus/archiver/util/Compressor.java
protected void compress( PlexusIoResource resource, OutputStream zOut )
        throws IOException
    {
        InputStream in = Streams.bufferedInputStream( resource.getContents() );
        try
        {
            compressFile( in, zOut );
        }
        finally
        {
            IOUtil.close( in );
        }
    }
protected void compress( PlexusIoResource resource, OutputStream zOut )
        throws IOException
    {
        InputStream in = Streams.bufferedInputStream( resource.getContents() );
        try
        {
            compressFile( in, zOut );
        }
        finally
        {
            IOUtil.close( in );
        }
    }
protected void compress ( PlexusIoResource resource , OutputStream zOut ) throws IOException { InputStream in = Streams . bufferedInputStream ( resource . getContents ( ) ) ; try { compressFile ( in , zOut ) ; } finally { IOUtil . close ( in ) ; } }
compress a resource to an output stream
compress a resource to an output stream