public abstract class AbstractImageLoaderFactory extends Object implements ImageLoaderFactory
构造器和说明 |
---|
AbstractImageLoaderFactory() |
限定符和类型 | 方法和说明 |
---|---|
int |
getUsagePenalty(String mime,
ImageFlavor flavor)
已过时。
Redundancy with
ImageLoader.getUsagePenalty() |
boolean |
isSupported(ImageInfo imageInfo)
Indicates whether the given image (represented by an
ImageInfo object) is supported
by the loader. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSupportedFlavors, getSupportedMIMETypes, isAvailable, newImageLoader
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
在接口中 ImageLoaderFactory
imageInfo
- the image info objectpublic int getUsagePenalty(String mime, ImageFlavor flavor)
ImageLoader.getUsagePenalty()
getUsagePenalty
在接口中 ImageLoaderFactory
mime
- the MIME typeflavor
- the target image flavorCopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.