fop 0.93

org.apache.fop.image
Interface ImageCache


public interface ImageCache

Image cache holder. This interface is used for caching images.


Method Summary
 void clearAll()
          Forces the cache to fully cleared.
 FopImage getImage(java.lang.String url, FOUserAgent context)
          Get an image from the cache.
 void invalidateImage(java.lang.String url, FOUserAgent context)
          Invalidate image.
 void releaseImage(java.lang.String url, FOUserAgent context)
          Release an image in the current context.
 void removeContext(FOUserAgent context)
          Remove a context and handle all images in the context.
 

Method Detail

getImage

public FopImage getImage(java.lang.String url,
                         FOUserAgent context)
Get an image from the cache.

Parameters:
url - the url and key for the image
context - the user agent context
Returns:
the requested image

releaseImage

public void releaseImage(java.lang.String url,
                         FOUserAgent context)
Release an image in the current context.

Parameters:
url - the url and key for the image
context - the user agent context

invalidateImage

public void invalidateImage(java.lang.String url,
                            FOUserAgent context)
Invalidate image. If during loading this image is found to be invalid it will be invalidated to prevent further attempts at loading the image.

Parameters:
url - the url and key for the image
context - the user agent context

removeContext

public void removeContext(FOUserAgent context)
Remove a context and handle all images in the context.

Parameters:
context - the user agent context

clearAll

public void clearAll()
Forces the cache to fully cleared.


fop 0.93

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