core/src/main/java/org/apache/commons/vfs2/provider/tar/TarInputStream.java
/**
     * Copies the contents of the current tar archive entry directly into an
     * output stream.
     *
     * @param output The OutputStream into which to write the entry's data.
     * @throws IOException when an IO error causes operation to fail
     */
Copies the contents of the current tar archive entry directly into an
output stream.

@param output The OutputStream into which to write the entry's data.
@throws IOException when an IO error causes operation to fail
Copies the contents of the current tar archive entry directly into an output stream . @param output The OutputStream into which to write the entry ' s data . @throws IOException when an IO error causes operation to fail
public void copyEntryContents(final OutputStream output) throws IOException
    {
        final byte[] buffer = new byte[32 * 1024];
        while (true)
        {
            final int numRead = read(buffer, 0, buffer.length);
            if (numRead == -1)
            {
                break;
            }
            output.write(buffer, 0, numRead);
        }
    }
public void copyEntryContents ( final OutputStream output ) throws IOException { final byte [ ] buffer = new byte [ 32 * 1024 ] ; while ( true ) { final int numRead = read ( buffer , 0 , buffer . length ) ; if ( numRead == - 1 ) { break ; } output . write ( buffer , 0 , numRead ) ; } }
Copies the contents of the current tar archive entry directly into an
 output stream.
Copies the contents of the current tar archive entry directly into an output stream .