while (it.hasNext()) { IIOReadWarningListener listener = (IIOReadWarningListener) it.next(); listener.warningOccurred(this, warning);
while (it.hasNext()) { IIOReadWarningListener listener = (IIOReadWarningListener) it.next(); listener.warningOccurred(this, warning); }
  protected void processWarningOccurred(String warning)  {    Iterator it = warningListeners.iterator();    while (it.hasNext())      {	IIOReadWarningListener listener = (IIOReadWarningListener) it.next();	listener.warningOccurred(this, warning);      }  }