public class CachedImage extends Object
The cached image class contains a loaded image in memory and can be used to perform various operations on it.
- Christopher Mindus
CachedImageLoads an image from a File.
An error is logged in the server in case of an exception not being a direct
getBufferedImagepublic BufferedImage getBufferedImage()Gets the buffered image.
- The buffered image.
getFileNamepublic String getFileName()Gets the original file name.
- The original file name can be a canonical file name as well as a "fake" file name where only the file extension should be checked.
getFileExtensionpublic String getFileExtension()Gets the file extension.
- The file extension without the "dot",
nullif none is found.
getDatapublic byte getData()Gets a copy of the original (file) data.
- The byte array, or
nullin case of an OutOfMemoryException or that the file data is not kept in this instance. An error is logged in the server in case of a problem.