日期:2014-05-20 浏览次数:21059 次
tempFile = new File(strFile);
Iterator readers = ImageIO.getImageReadersByFormatName("tiff");
while(readers.hasNext()) {
ImageReader reader = (ImageReader) readers.next();
ImageInputStream iis = ImageIO.createImageInputStream(tempFile);
if(iis != null && iis.length()>0) {
reader.setInput(iis, true);
for (int i0 = 0; ; i0++) {
try {
reader.read(i0);
intNewGenchoTorokuPageWork++;
} catch (IndexOutOfBoundsException ioe) {
break;
} catch (IIOException ex) {
报错。
}
}
}