|
xmlgraphics-commons 2.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.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,
Map hints,
ImageSessionContext session)
Loads and returns an image. |
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 final org.apache.commons.logging.Log log
| Constructor Detail |
|---|
public CompositeImageLoader(ImageLoader[] loaders)
loaders - the contained image loaders| Method Detail |
|---|
public ImageFlavor getTargetFlavor()
public int getUsagePenalty()
getUsagePenalty in interface ImageLoadergetUsagePenalty in class AbstractImageLoader
public Image loadImage(ImageInfo info,
Map hints,
ImageSessionContext session)
throws ImageException,
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
IOException - if an I/O error occurs while loading the imagepublic String toString()
toString in class Object
|
xmlgraphics-commons 2.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||