If theImage is non-null, then this call is first forwarded to theImage.dispose(). Subsequent to this super.dispose() is invoked.
theImage
null
theImage.dispose()
super.dispose()
The results of referencing an image after a call to dispose() are undefined.
dispose()
175176177178179180181182183184185
log.error("Error while loading image (JAI): " + ex.getMessage(), ex); } finally { IOUtils.closeQuietly(inputStream); inputStream = null; if (imageOp != null) { imageOp.dispose(); } if (seekableInput != null) { IOUtils.closeQuietly(seekableInput); } }
167168169170171172173174175176177
888889890891892893894895896897898
GenericPiecewise.OPERATION_NAME, pbj); if (TestData.isInteractiveTest()) ImageIOUtilities.visualize(finalImage, "testSWANLOGARITHMIC"); else finalImage.getTiles(); finalImage.dispose(); } /**
235236237238239240241242243244245
if (TestData.isInteractiveTest()) ImageIOUtilities.visualize(finalimage, "synthetic"); else finalimage.getTiles(); finalimage.dispose(); } } /**
339340341342343344345346347348349
426427428429430431432433434435436
if (TestData.isInteractiveTest()) ImageIOUtilities.visualize(finalimage, "spearfish"); else finalimage.getTiles(); finalimage.dispose(); } } /**
546547548549550551552553554555556
RasterClassifier.OPERATION_NAME, pbj); if (TestData.isInteractiveTest()) ImageIOUtilities.visualize(finalImage, "testSWAN1"); else finalImage.getTiles(); finalImage.dispose(); } } /**
639640641642643644645646647648649
if (TestData.isInteractiveTest()) ImageIOUtilities.visualize(finalImage, "testSWANGAP"); else finalImage.getTiles(); finalImage.dispose(); } } /** * Building an image based on SWAN data.
858687888990919293
assertTrue(sample.getName().equals(new NameImpl("GRAY-AXIS"))); assertTrue(sample.getDescription().compareTo(new SimpleInternationalString("Axis for GRAY bands")) == 0); assertNotNull(sample.getKeys()); BandIndexMeasure band = sample.getKey(0); assertTrue(band != null); constant.dispose(); } }
862863864865866867868869870871872
LOGGER.log(Level.FINE,e.getLocalizedMessage(),e); } try { if(newImage!=null) newImage.dispose(); } catch (Throwable e) { if (LOGGER.isLoggable(Level.FINE)) LOGGER.log(Level.FINE,e.getLocalizedMessage(),e); }