ImagePreloader
public class PreloaderBMP extends AbstractImagePreloader
Modifier and Type | Field | Description |
---|---|---|
protected static int |
BMP_SIG_LENGTH |
Length of the BMP header
|
DEFAULT_PRIORITY
Constructor | Description |
---|---|
PreloaderBMP() |
Modifier and Type | Method | Description |
---|---|---|
ImageInfo |
preloadImage(String uri,
Source src,
ImageContext context) |
"Preloads" an image, i.e.
|
getHeader, getPriority
protected static final int BMP_SIG_LENGTH
public 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 informationIOException
- if an I/O error occurs while preloading the imageImageException
- if an error occurs while preloading the imageCopyright © 2018 Apache Software Foundation. All rights reserved.