/** * Uncompress and return the stored image. * @return The image. * @throws IOException If the image data could not be decoded. */ public BufferedImage getImage() throws IOException { return ImageIO.read(new ByteArrayInputStream(getData())); }
@Override protected byte[] getData() { initialize(); return super.getData(); }
/** * Retrieve a copy of the underlying data array. * @return The underlying compressed image. */ public byte[] getDataCopy() { return getData().clone(); }