public long skip ( long n ) throws IOException { if ( n < 0 ) { throw new IllegalArgumentException ( "negative skip length" ) ; } ensureOpen ( ) ; int max = ( int ) Math . min ( n , Integer . MAX_VALUE ) ; int total = 0 ; while ( total < max ) { int len = max - total ; if ( len > b . length ) { len = b . length ; } len = read ( b , 0 , len ) ; if ( len == - 1 ) { reachEOF = true ; break ; } total += len ; } return total ; }
Skips specified number of bytes of uncompressed data .