public void done(){
  if (resultNumber == (end + 1)) {
    getPreviousAndNextLinksForPagination(start != 0,true,requestAndResponse,result);
  }
 else   if (start == 0 && !anyMatches) {
    result.append(noMatchesText);
  }
 else   if (start != 0 && !anyMatches) {
    result.append(servletText.sentenceNoMoreResults());
  }
 else   if (start != 0) {
    getPreviousAndNextLinksForPagination(true,false,requestAndResponse,result);
  }
}

public void done ( ) { if ( resultNumber == ( end + 1 ) ) { getPreviousAndNextLinksForPagination ( start != 0 , true , requestAndResponse , result ) ; } else if ( start == 0 && ! anyMatches ) { result . append ( noMatchesText ) ; } else if ( start != 0 && ! anyMatches ) { result . append ( servletText . sentenceNoMoreResults ( ) ) ; } else if ( start != 0 ) { getPreviousAndNextLinksForPagination ( true , false , requestAndResponse , result ) ; } }
the iterator should call this when it has finished iterating to print out the right message .
