org.apache.xmlgraphics.image.loader.spi
public interface ImagePreloader
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_PRIORITY
Default priority for preloaders
|
Modifier and Type | Method and Description |
---|---|
int |
getPriority()
Returns the priority of the preloader.
|
ImageInfo |
preloadImage(java.lang.String originalURI,
javax.xml.transform.Source src,
ImageContext context)
"Preloads" an image, i.e.
|
static final int DEFAULT_PRIORITY
ImageInfo preloadImage(java.lang.String originalURI, javax.xml.transform.Source src, ImageContext context) throws ImageException, java.io.IOException
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 imagejava.io.IOException
- if an I/O error occurs while preloading the imageint getPriority()
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.