public interface ImagePreloader
限定符和类型 | 字段和说明 |
---|---|
static int |
DEFAULT_PRIORITY
Default priority for preloaders
|
限定符和类型 | 方法和说明 |
---|---|
int |
getPriority()
Returns the priority of the preloader.
|
ImageInfo |
preloadImage(String originalURI,
Source src,
ImageContext context)
"Preloads" an image, i.e. indentifies whether the source image is supported by this
implementation and determines the image's intrinsic size and possibly some additional
information.
|
static final int DEFAULT_PRIORITY
ImageInfo preloadImage(String originalURI, Source src, ImageContext context) throws ImageException, IOException
ImageException
is only
thrown if the image is identified but some error has happened while working on the file.originalURI
- the original (unresolved) URI of the imagesrc
- a image source the image is loaded fromcontext
- the context object that provides configuration informationImageException
- if an error occurs while preloading the imageIOException
- if an I/O error occurs while preloading the imageint getPriority()
Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.