org.apache.xmlgraphics.image.loader.impl.imageio
public 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 and Description |
---|
PreloaderImageIO() |
Modifier and Type | Method and Description |
---|---|
int |
getPriority()
Returns the priority of the preloader.
|
ImageInfo |
preloadImage(java.lang.String uri,
javax.xml.transform.Source src,
ImageContext context)
"Preloads" an image, i.e.
|
getHeader
public ImageInfo preloadImage(java.lang.String uri, javax.xml.transform.Source src, ImageContext context) throws java.io.IOException, ImageException
uri
- the original (unresolved) URI of the imagesrc
- a image source the image is loaded fromcontext
- the context object that provides configuration informationImageException
java.io.IOException
- if an I/O error occurs while preloading the imagepublic int getPriority()
getPriority
in interface ImagePreloader
getPriority
in class AbstractImagePreloader
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.