@Override public long skip(long n) throws IOException {
  long remaining=n;
  final char[] ch=new char[fBuffer.length];
  do {
    int length=ch.length < remaining ? ch.length : (int)remaining;
    int count=read(ch,0,length);
    if (count > 0) {
      remaining-=count;
    }
 else {
      break;
    }
  }
 while (remaining > 0);
  long skipped=n - remaining;
  return skipped;
}

@ Override public long skip ( long n ) throws IOException { long remaining = n ; final char [ ] ch = new char [ fBuffer . length ] ; do { int length = ch . length < remaining ? ch . length : ( int ) remaining ; int count = read ( ch , 0 , length ) ; if ( count > 0 ) { remaining -= count ; } else { break ; } } while ( remaining > 0 ) ; long skipped = n - remaining ; return skipped ; }
skip characters . this method will block until some characters are available , an i / o error occurs , or the end of the stream is reached .
