@Override protected int eofCheck(EOFException e,int start,int index,int length) throws EOFException {
  if (start == index) {
    throw e;
  }
 else {
    return (index - start) * length;
  }
}

@ Override protected int eofCheck ( EOFException e , int start , int index , int length ) throws EOFException { if ( start == index ) { throw e ; } else { return ( index - start ) * length ; } }
see if an exception should be thrown during an array read .
