public class PreloaderJPEG extends AbstractImagePreloader implements JPEGConstants
APP0, APP1, APP2, APPD, APPE, APPF, EOI, MARK, NULL, SOF0, SOF1, SOF2, SOFA, SOI, SOS
DEFAULT_PRIORITY
Constructor and Description |
---|
PreloaderJPEG() |
Modifier and Type | Method and Description |
---|---|
ImageInfo |
preloadImage(java.lang.String uri,
javax.xml.transform.Source src,
ImageContext context)
"Preloads" an image, i.e.
|
getHeader, getPriority
public ImageInfo preloadImage(java.lang.String uri, javax.xml.transform.Source src, ImageContext context) throws java.io.IOException, ImageException
ImageException
is only
thrown if the image is identified but some error has happened while working on the file.preloadImage
in interface ImagePreloader
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 imageCopyright 1999-2012 The Apache Software Foundation. All Rights Reserved.