关于ImageIO.getImageWritersByFormatName("tiff")的问题
Iterator<ImageWriter> writers = ImageIO.getImageWritersByFormatName("tiff");ImageWriter writer = writers.next(); 程序执行到这里的时候会报java.util.NoSuchElementException的异常,有没有哪位知道这个一般会是什么问题啊? --------------------编程问答--------------------跑到最后一个就没有了。先要判断下:
if(writers.hasNext()){
ImageWriter writer = writers.next();
}
补充:Java , Java EE