parquet-common/src/main/java/org/apache/parquet/bytes/LittleEndianDataInputStream.java
public final int skipBytes(int n) throws IOException {
    int total = 0;
    int cur = 0;

    while ((total<n) && ((cur = (int) in.skip(n-total)) > 0)) {
      total += cur;
    }

    return total;
  }
public final int skipBytes(int n) throws IOException {
    int total = 0;
    int cur = 0;

    while ((total<n) && ((cur = (int) in.skip(n-total)) > 0)) {
      total += cur;
    }

    return total;
  }
public final int skipBytes ( int n ) throws IOException { int total = 0 ; int cur = 0 ; while ( ( total < n ) && ( ( cur = ( int ) in . skip ( n - total ) ) > 0 ) ) { total += cur ; } return total ; }
See the general contract of the <code>skipBytes</code>
method of <code>DataInput</code>.
<p>
Bytes for this operation are read from the contained
input stream.

@param      n   the number of bytes to be skipped.
@return     the actual number of bytes skipped.
@exception  IOException  if the contained input stream does not support
seek, or the stream has been closed and
the contained input stream does not support
reading after close, or another I/O error occurs.
See the general contract of the <code > skipBytes< / code > method of <code > DataInput< / code > . <p > Bytes for this operation are read from the contained input stream .