public LogFileParser.LogEntry poll(){
  LogFileParser.LogEntry returnValue=null;
  if (this.nextEntry != null) {
    returnValue=this.nextEntry;
    nextEntry=null;
  }
 else {
    while (returnValue == null) {
      try {
        returnValue=parser.getNextEntry();
        if (!returnValue.isLast() && !patternMatch(returnValue)) {
          returnValue=null;
          continue;
        }
      }
 catch (      IOException ioe) {
        ioe.printStackTrace(System.err);
        break;
      }
    }
  }
  return returnValue;
}

public LogFileParser . LogEntry poll ( ) { LogFileParser . LogEntry returnValue = null ; if ( this . nextEntry != null ) { returnValue = this . nextEntry ; nextEntry = null ; } else { while ( returnValue == null ) { try { returnValue = parser . getNextEntry ( ) ; if ( ! returnValue . isLast ( ) && ! patternMatch ( returnValue ) ) { returnValue = null ; continue ; } } catch ( IOException ioe ) { ioe . printStackTrace ( System . err ) ; break ; } } } return returnValue ; }
removes the old log entry read from the log file
