Class ImageIOImageData

java.lang.Object
org.htmlunit.platform.image.ImageIOImageData
All Implemented Interfaces:
AutoCloseable, ImageData

public class ImageIOImageData extends Object implements ImageData
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Wraps the ImageReader for an HtmlImage. This is necessary because an object with a finalize() method is only garbage collected after the method has been run. Which causes all referenced objects to also not be garbage collected until this happens. Because a HtmlImage references a lot of objects which could all be garbage collected without impacting the ImageReader it is better to wrap it in another class.