public class PreloaderGIF extends AbstractImagePreloader
Modifier and Type | Field and Description |
---|---|
private static int |
GIF_SIG_LENGTH |
DEFAULT_PRIORITY
Constructor and Description |
---|
PreloaderGIF() |
Modifier and Type | Method and Description |
---|---|
private ImageSize |
determineSize(byte[] header,
ImageContext context,
javax.imageio.stream.ImageInputStream in) |
private int[] |
extractImageMetadata(javax.imageio.stream.ImageInputStream in) |
ImageInfo |
preloadImage(java.lang.String uri,
javax.xml.transform.Source src,
ImageContext context)
"Preloads" an image, i.e.
|
getHeader, getPriority
private static final int GIF_SIG_LENGTH
public ImageInfo preloadImage(java.lang.String uri, javax.xml.transform.Source src, ImageContext context) throws java.io.IOException
ImageException
is only
thrown if the image is identified but some error has happened while working on the file.uri
- the original (unresolved) URI of the imagesrc
- a image source the image is loaded fromcontext
- the context object that provides configuration informationjava.io.IOException
- if an I/O error occurs while preloading the imageprivate ImageSize determineSize(byte[] header, ImageContext context, javax.imageio.stream.ImageInputStream in) throws java.io.IOException
java.io.IOException
private int[] extractImageMetadata(javax.imageio.stream.ImageInputStream in) throws java.io.IOException
java.io.IOException