129130131132133134135136137138139
try { writer.setOutput(outStream); writer.write(null, new IIOImage(image, null, null), iwp); } finally { try { writer.dispose(); } catch (Throwable e) { if (LOGGER.isLoggable(Level.FINE)) LOGGER.log(Level.FINE, e.getLocalizedMessage(), e); } try {