@Override
    public long skip(long n) throws IOException {
        final long skipped = super.skip(n);
        if (includeSkipped && skipped > 0) {
            dataLength += skipped;
            checkLength(false);
        }
        return skipped;
    }
{@inheritDoc}

@throws SdkClientException
            if {@link #includeSkipped} is true and the data length
            skipped has exceeded the expected total.
aws-java-sdk-core/src/main/java/com/amazonaws/util/LengthCheckInputStream.java