ImagePreloader
PreloaderBMP
, PreloaderEMF
, PreloaderEPS
, PreloaderGIF
, PreloaderImageIO
, PreloaderJPEG
, PreloaderRawPNG
, PreloaderTIFF
public abstract class AbstractImagePreloader extends Object implements ImagePreloader
DEFAULT_PRIORITY
Constructor | Description |
---|---|
AbstractImagePreloader() |
Modifier and Type | Method | Description |
---|---|---|
protected byte[] |
getHeader(ImageInputStream in,
int size) |
Allows to read an image header (usually just a magic number).
|
int |
getPriority() |
Returns the priority of the preloader.
|
preloadImage
protected byte[] getHeader(ImageInputStream in, int size) throws IOException
in
- the ImageInputStream to read fromsize
- the size of the headerIOException
- if an I/O error occurs while reading the headerpublic int getPriority()
getPriority
in interface ImagePreloader
Copyright © 2018 Apache Software Foundation. All rights reserved.