@Override
    public long skip(final long n) throws IOException {
        final long toSkip = max >= 0 ? Math.min(n, max - pos) : n;
        final long skippedBytes = in.skip(toSkip);
        pos += skippedBytes;
        return skippedBytes;
    }
Invokes the delegate's <code>skip(long)</code> method.
As with InputStream generally, this does not guarantee reading n bytes.
Use IOUtils' skipFully for that functionality.

@param n the number of bytes to skip
@return the actual number of bytes skipped
@throws IOException if an I/O error occurs
tika-core/src/main/java/org/apache/tika/io/BoundedInputStream.java