@Override public boolean hasNext(){
  if ((maxNumber > -1) && (linesRead >= maxNumber)) {
    return false;
  }
  if (lineRead) {
    return !eof;
  }
  try {
    eof=!readLine();
    if (eof) {
      inAttributes.close();
      if (inLabels != null) {
        inLabels.close();
      }
    }
  }
 catch (  IOException e) {
    throw new RuntimeException(e.getMessage(),e);
  }
  lineRead=true;
  return (!eof);
}

@ Override public boolean hasNext ( ) { if ( ( maxNumber > - 1 ) && ( linesRead >= maxNumber ) ) { return false ; } if ( lineRead ) { return ! eof ; } try { eof = ! readLine ( ) ; if ( eof ) { inAttributes . close ( ) ; if ( inLabels != null ) { inLabels . close ( ) ; } } } catch ( IOException e ) { throw new RuntimeException ( e . getMessage ( ) , e ) ; } lineRead = true ; return ( ! eof ) ; }
checks if further examples exist . returns false if one of the files end .
