int id = dispatcher.next();  while (id != BitstreamDispatcher.SENTINEL) { LOG.debug("Processing bitstream id = " + id); BitstreamInfo info = checkBitstream(id);  if (reportVerbose || (info.getChecksumCheckResult() != ChecksumCheckResults.CHECKSUM_MATCH)) { collector.collect(info); }  id = dispatcher.next(); }
    public void process()    {        LOG.debug("Begin Checker Processing");        if (dispatcher == null)        {            throw new IllegalStateException("No BitstreamDispatcher provided");        }        if (collector == null)        {            collector = new ResultsLogger(processStartDate);        }        // loop through bitstreams and check        try        {            bitstreamInfoDAO.updateMissingBitstreams();            int id = dispatcher.next();            LOG.debug("Processing bitstream id = " + id);            while (id != BitstreamDispatcher.SENTINEL)            {                BitstreamInfo info = checkBitstream(id);                if (reportErrorsOnly                        && (info.getChecksumCheckResult() == ChecksumCheckResults.CHECKSUM_MATCH))                {                    // NO-OP do not report good checksums                }                else                {                    collector.collect(info);                }                id = dispatcher.next();            }        }        catch (SQLException e)        {            LOG.error("Next bitstream metadata could not be retrieved. ", e);        }        // update missing bitstreams that were entered into the        // bitstream table - this always done.        bitstreamInfoDAO.updateMissingBitstreams();    }