public class PreloaderTIFF extends AbstractImagePreloader
Note: The implementation relies on the TIFF codec code in Apache XML Graphics Commons for access to the TIFF directory.
Modifier and Type | Field and Description |
---|---|
private static org.apache.commons.logging.Log |
log |
private static int |
TIFF_SIG_LENGTH |
DEFAULT_PRIORITY
Constructor and Description |
---|
PreloaderTIFF() |
Modifier and Type | Method and Description |
---|---|
private ImageInfo |
createImageInfo(java.lang.String uri,
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 org.apache.commons.logging.Log log
private static final int TIFF_SIG_LENGTH
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.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 ImageInfo createImageInfo(java.lang.String uri, javax.imageio.stream.ImageInputStream in, ImageContext context) throws java.io.IOException, ImageException
java.io.IOException
ImageException