core/src/main/java/org/apache/commons/vfs2/provider/tar/TarInputStream.java
/**
     * Skip bytes in the input buffer. This skips bytes in the current entry's
     * data, not the entire archive, and will stop at the end of the current
     * entry's data if the number to skip extends beyond that point.
     *
     * @param numToSkip The number of bytes to skip.
     * @throws IOException when an IO error causes operation to fail
     */
Skip bytes in the input buffer. This skips bytes in the current entry's
data, not the entire archive, and will stop at the end of the current
entry's data if the number to skip extends beyond that point.

@param numToSkip The number of bytes to skip.
@throws IOException when an IO error causes operation to fail
Skip bytes in the input buffer . This skips bytes in the current entry ' s data not the entire archive and will stop at the end of the current entry ' s data if the number to skip extends beyond that point . @param numToSkip The number of bytes to skip . @throws IOException when an IO error causes operation to fail
public void skip(final int numToSkip) throws IOException
    {
        final byte[] skipBuf = new byte[8 * 1024];
        int num = numToSkip;
        while (num > 0)
        {
            final int count = (num > skipBuf.length) ? skipBuf.length : num;
            final int numRead = read(skipBuf, 0, count);
            if (numRead == -1)
            {
                break;
            }
            num -= numRead;
        }
    }
public void skip ( final int numToSkip ) throws IOException { final byte [ ] skipBuf = new byte [ 8 * 1024 ] ; int num = numToSkip ; while ( num > 0 ) { final int count = ( num > skipBuf . length ) ? skipBuf . length : num ; final int numRead = read ( skipBuf , 0 , count ) ; if ( numRead == - 1 ) { break ; } num -= numRead ; } }
Skip bytes in the input buffer.
Skip bytes in the input buffer .
// REVIEW // This is horribly inefficient, but it ensures that we // properly skip over bytes via the TarBuffer... //