|
xmlgraphics-commons 1.3.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xmlgraphics.image.loader.impl.AbstractImagePreloader
public abstract class AbstractImagePreloader
Abstract base class for image preloaders. It provides helper methods for often-used tasks.
Field Summary |
---|
Fields inherited from interface org.apache.xmlgraphics.image.loader.spi.ImagePreloader |
---|
DEFAULT_PRIORITY |
Constructor Summary | |
---|---|
AbstractImagePreloader()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.xmlgraphics.image.loader.spi.ImagePreloader |
---|
preloadImage |
Constructor Detail |
---|
public AbstractImagePreloader()
Method Detail |
---|
protected byte[] getHeader(javax.imageio.stream.ImageInputStream in, int size) throws java.io.IOException
in
- the ImageInputStream to read fromsize
- the size of the header
java.io.IOException
- if an I/O error occurs while reading the headerpublic int getPriority()
getPriority
in interface ImagePreloader
|
xmlgraphics-commons 1.3.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |