|
xmlgraphics-commons 2.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xmlgraphics.image.loader.impl.AbstractImageLoaderFactory
public abstract class AbstractImageLoaderFactory
Abstract base class for ImageLoaderFactory implementations.
| Constructor Summary | |
|---|---|
AbstractImageLoaderFactory()
|
|
| Method Summary | |
|---|---|
int |
getUsagePenalty(java.lang.String mime,
ImageFlavor flavor)
Deprecated. Redundancy with ImageLoader.getUsagePenalty() |
boolean |
isSupported(ImageInfo imageInfo)
Indicates whether the given image (represented by an ImageInfo object) is supported
by the loader. |
| 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.ImageLoaderFactory |
|---|
getSupportedFlavors, getSupportedMIMETypes, isAvailable, newImageLoader |
| Constructor Detail |
|---|
public AbstractImageLoaderFactory()
| Method Detail |
|---|
public boolean isSupported(ImageInfo imageInfo)
ImageInfo object) is supported
by the loader. By default, implementations return true assuming all images of the supported
MIME types can be processed correctly. In some cases, however, an ImageLoader may only
support a subset of a format because it offers an optimized way to embed the image in
the target format (for example: CCITT compressed TIFF files in PDF and PostScript). For
this to work, the preloader must register some information in the ImageInfo's custom
objects so the factory can identify if an image may or may not be supported.
isSupported in interface ImageLoaderFactoryimageInfo - the image info object
public int getUsagePenalty(java.lang.String mime,
ImageFlavor flavor)
ImageLoader.getUsagePenalty()
getUsagePenalty in interface ImageLoaderFactorymime - the MIME typeflavor - the target image flavor
|
xmlgraphics-commons 2.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||