|
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.AbstractImageLoaderFactory
org.apache.xmlgraphics.image.loader.impl.ImageLoaderFactoryRaw
public class ImageLoaderFactoryRaw
Factory class for the ImageLoader for raw/undecoded images.
Field Summary | |
---|---|
static java.lang.String |
MIME_EMF
MIME type for EMF (Windows Enhanced Metafile) |
Constructor Summary | |
---|---|
ImageLoaderFactoryRaw()
|
Method Summary | |
---|---|
static java.lang.String |
getMimeForRawFlavor(ImageFlavor flavor)
Returns the MIME type for a given ImageFlavor if it is from a format that is consumed without being undecoded. |
ImageFlavor[] |
getSupportedFlavors(java.lang.String mime)
Returns an array of ImageFlavors that are supported by this implementation for a given MIME type. |
java.lang.String[] |
getSupportedMIMETypes()
Returns an array of MIME types supported by this implementation. |
int |
getUsagePenalty(java.lang.String mime,
ImageFlavor flavor)
Returns the usage penalty for a particular ImageLoader. |
boolean |
isAvailable()
Indicates whether the underlying libraries needed by the implementation are available. |
ImageLoader |
newImageLoader(ImageFlavor targetFlavor)
Creates and returns a new ImageLoader instance. |
Methods inherited from class org.apache.xmlgraphics.image.loader.impl.AbstractImageLoaderFactory |
---|
isSupported |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String MIME_EMF
Constructor Detail |
---|
public ImageLoaderFactoryRaw()
Method Detail |
---|
public static java.lang.String getMimeForRawFlavor(ImageFlavor flavor)
flavor
- the image flavor
public java.lang.String[] getSupportedMIMETypes()
public ImageFlavor[] getSupportedFlavors(java.lang.String mime)
mime
- the MIME type
public ImageLoader newImageLoader(ImageFlavor targetFlavor)
targetFlavor
- the target image flavor to produce
public int getUsagePenalty(java.lang.String mime, ImageFlavor flavor)
mime
- the MIME typeflavor
- the target image flavor
public boolean isAvailable()
|
xmlgraphics-commons 1.3.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |