xmlgraphics-commons 1.3.1

org.apache.xmlgraphics.image.loader.impl
Class ImageLoaderFactoryInternalTIFF

java.lang.Object
  extended by org.apache.xmlgraphics.image.loader.impl.AbstractImageLoaderFactory
      extended by org.apache.xmlgraphics.image.loader.impl.ImageLoaderFactoryInternalTIFF
All Implemented Interfaces:
ImageLoaderFactory

public class ImageLoaderFactoryInternalTIFF
extends AbstractImageLoaderFactory

Factory class for the ImageLoader for TIFF (based on Commons' internal TIFF codec).


Constructor Summary
ImageLoaderFactoryInternalTIFF()
           
 
Method Summary
 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
 

Constructor Detail

ImageLoaderFactoryInternalTIFF

public ImageLoaderFactoryInternalTIFF()
Method Detail

getSupportedMIMETypes

public java.lang.String[] getSupportedMIMETypes()
Returns an array of MIME types supported by this implementation.

Returns:
the MIME type array

getSupportedFlavors

public ImageFlavor[] getSupportedFlavors(java.lang.String mime)
Returns an array of ImageFlavors that are supported by this implementation for a given MIME type.

Parameters:
mime - the MIME type
Returns:
the ImageFlavor array

newImageLoader

public ImageLoader newImageLoader(ImageFlavor targetFlavor)
Creates and returns a new ImageLoader instance.

Parameters:
targetFlavor - the target image flavor to produce
Returns:
a new ImageLoader instance

getUsagePenalty

public int getUsagePenalty(java.lang.String mime,
                           ImageFlavor flavor)
Returns the usage penalty for a particular ImageLoader. This is used to select the best ImageLoader implementation for loading an image.

Parameters:
mime - the MIME type
flavor - the target image flavor
Returns:
the usage penalty (must be a non-negative integer)

isAvailable

public boolean isAvailable()
Indicates whether the underlying libraries needed by the implementation are available.

Returns:
true if the implementation is functional.

xmlgraphics-commons 1.3.1

Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.