|
xmlgraphics-commons 1.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xmlgraphics.image.loader.impl.AbstractImageLoader
org.apache.xmlgraphics.image.loader.impl.CompositeImageLoader
public class CompositeImageLoader
Composite ImageLoader implementation in order to provide fallbacks when one ImageLoader fails due to some limitation.
Field Summary | |
---|---|
protected static org.apache.commons.logging.Log |
log
logger |
Fields inherited from interface org.apache.xmlgraphics.image.loader.spi.ImageLoader |
---|
MEDIUM_LOADING_PENALTY, NO_LOADING_PENALTY |
Constructor Summary | |
---|---|
CompositeImageLoader(ImageLoader[] loaders)
Main constructor. |
Method Summary | |
---|---|
ImageFlavor |
getTargetFlavor()
Returns the image flavor that is returned by this ImageLoader implementation. |
int |
getUsagePenalty()
Returns the penalty assigned to using this image loader. |
Image |
loadImage(ImageInfo info,
java.util.Map hints,
ImageSessionContext session)
Loads and returns an image. |
java.lang.String |
toString()
|
Methods inherited from class org.apache.xmlgraphics.image.loader.impl.AbstractImageLoader |
---|
ignoreColorProfile, loadImage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static org.apache.commons.logging.Log log
Constructor Detail |
---|
public CompositeImageLoader(ImageLoader[] loaders)
loaders
- the contained image loadersMethod Detail |
---|
public ImageFlavor getTargetFlavor()
public int getUsagePenalty()
getUsagePenalty
in interface ImageLoader
getUsagePenalty
in class AbstractImageLoader
public Image loadImage(ImageInfo info, java.util.Map hints, ImageSessionContext session) throws ImageException, java.io.IOException
info
- the image info object indicating the imagehints
- a Map of hints that can be used by implementations to customize the loading
process (may be null).session
- the session context
ImageException
- if an error occurs while loading the image
java.io.IOException
- if an I/O error occurs while loading the imagepublic java.lang.String toString()
toString
in class java.lang.Object
|
xmlgraphics-commons 1.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |