ImageWriter.java 文件源码

java
阅读 33 收藏 0 点赞 0 评论 0

项目:OpenJSharp 作者:
/**
 * Broadcasts a warning message to all registered
 * <code>IIOWriteWarningListener</code>s by calling their
 * <code>warningOccurred</code> method.  Subclasses may use this
 * method as a convenience.
 *
 * @param imageIndex the index of the image on which the warning
 * occurred.
 * @param warning the warning message.
 *
 * @exception IllegalArgumentException if <code>warning</code>
 * is <code>null</code>.
 */
protected void processWarningOccurred(int imageIndex,
                                      String warning) {
    if (warningListeners == null) {
        return;
    }
    if (warning == null) {
        throw new IllegalArgumentException("warning == null!");
    }
    int numListeners = warningListeners.size();
    for (int i = 0; i < numListeners; i++) {
        IIOWriteWarningListener listener =
            (IIOWriteWarningListener)warningListeners.get(i);

        listener.warningOccurred(this, imageIndex, warning);
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号