Пример #1
0
 /** Reap incidents which have been cleared for awhile */
 private void reapIncidents() {
   Iterator<Incident> it = IncidentHelper.iterator();
   while (it.hasNext()) {
     Incident inc = it.next();
     if (inc instanceof IncidentImpl) reapIncident((IncidentImpl) inc);
   }
 }
 /** Write the body of the incident XML file */
 private void writeBody(Writer w) throws IOException {
   Iterator<Incident> it = IncidentHelper.iterator();
   while (it.hasNext()) {
     Incident inc = it.next();
     if (inc instanceof IncidentImpl) ((IncidentImpl) inc).writeXml(w);
   }
 }