public class BufferedImageCacheEntry extends CacheEntry
Modifier and Type | Field and Description |
---|---|
private boolean |
imageLoaded |
private BufferedImage |
img |
private static long |
serialVersionUID |
private boolean |
writtenToDisk |
content
Constructor and Description |
---|
BufferedImageCacheEntry(byte[] content) |
Modifier and Type | Method and Description |
---|---|
BufferedImage |
getImage()
Returns BufferedImage from for the content.
|
private void |
writeObject(ObjectOutputStream out) |
getContent
private static final long serialVersionUID
private transient volatile BufferedImage img
private transient volatile boolean writtenToDisk
private transient volatile boolean imageLoaded
public BufferedImageCacheEntry(byte[] content)
content
- byte array containing imagepublic BufferedImage getImage() throws IOException
IOException
- if an error occurs during reading.private void writeObject(ObjectOutputStream out) throws IOException
IOException