|
xmlgraphics-commons 2.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ImagePreloader
This interface provides two functions: determining whether an image format is supported and if that's the case, some minimal information (mostly the image's intrinsic size) is extracted and returned.
| Field Summary | |
|---|---|
static int |
DEFAULT_PRIORITY
Default priority for preloaders |
| Method Summary | |
|---|---|
int |
getPriority()
Returns the priority of the preloader. |
ImageInfo |
preloadImage(String originalURI,
Source src,
ImageContext context)
"Preloads" an image, i.e. |
| Field Detail |
|---|
static final int DEFAULT_PRIORITY
| Method Detail |
|---|
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 information
ImageException - if an error occurs while preloading the image
IOException - if an I/O error occurs while preloading the imageint getPriority()
|
xmlgraphics-commons 2.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||