ImagePreloaderPreloaderBMP, PreloaderEMF, PreloaderEPS, PreloaderGIF, PreloaderImageIO, PreloaderJPEG, PreloaderRawPNG, PreloaderTIFFpublic abstract class AbstractImagePreloader extends java.lang.Object implements ImagePreloader
DEFAULT_PRIORITY| Constructor | Description |
|---|---|
AbstractImagePreloader() |
| Modifier and Type | Method | Description |
|---|---|---|
protected byte[] |
getHeader(javax.imageio.stream.ImageInputStream in,
int size) |
Allows to read an image header (usually just a magic number).
|
int |
getPriority() |
Returns the priority of the preloader.
|
preloadImageprotected byte[] getHeader(javax.imageio.stream.ImageInputStream in,
int size)
throws java.io.IOException
in - the ImageInputStream to read fromsize - the size of the headerjava.io.IOException - if an I/O error occurs while reading the headerpublic int getPriority()
getPriority in interface ImagePreloaderCopyright 1999-2018 The Apache Software Foundation. All Rights Reserved.