public class PreloaderJPEG extends AbstractImagePreloader implements JPEGConstants
Modifier and Type | Field and Description |
---|---|
private static int[] |
BYTES_PER_COMPONENT |
private static int |
EXIF |
private static int |
II |
private static int |
JPG_SIG_LENGTH |
private static int |
MM |
private static int |
RESOLUTION_UNIT |
private static int |
X_RESOLUTION |
private static int |
Y_RESOLUTION |
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 |
---|---|
private ImageSize |
determineSize(javax.imageio.stream.ImageInputStream in,
ImageContext context) |
ImageInfo |
preloadImage(java.lang.String uri,
javax.xml.transform.Source src,
ImageContext context)
"Preloads" an image, i.e.
|
getHeader, getPriority
private static final int JPG_SIG_LENGTH
private static final int[] BYTES_PER_COMPONENT
private static final int EXIF
private static final int II
private static final int MM
private static final int X_RESOLUTION
private static final int Y_RESOLUTION
private static final int RESOLUTION_UNIT
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 imageprivate ImageSize determineSize(javax.imageio.stream.ImageInputStream in, ImageContext context) throws java.io.IOException, ImageException
java.io.IOException
ImageException