ImagePreloaderpublic class PreloaderImageIO extends AbstractImagePreloader
Note: The implementation relies on the presence of a working ImageIO implementation which provides accurate image metadata. This is particularly important for PNG image because the PNG loader relies on that.
DEFAULT_PRIORITY| Constructor | Description |
|---|---|
PreloaderImageIO() |
| Modifier and Type | Method | Description |
|---|---|---|
int |
getPriority() |
Returns the priority of the preloader.
|
ImageInfo |
preloadImage(String uri,
Source src,
ImageContext context) |
"Preloads" an image, i.e.
|
getHeaderpublic ImageInfo preloadImage(String uri, Source src, ImageContext context) throws IOException, ImageException
ImageException is only
thrown if the image is identified but some error has happened while working on the file.uri - the original (unresolved) URI of the imagesrc - a image source the image is loaded fromcontext - the context object that provides configuration informationImageExceptionIOException - if an I/O error occurs while preloading the imagepublic int getPriority()
getPriority in interface ImagePreloadergetPriority in class AbstractImagePreloaderCopyright © 2018 Apache Software Foundation. All rights reserved.