org.apache.fop.image
Interface ImageCache
public interface ImageCache
Image cache holder.
This interface is used for caching images.
clearAll
public void clearAll()
Forces the cache to fully cleared.
getImage
public FopImage getImage(String url,
FOUserAgent context)
Get an image from the cache.
url
- the url and key for the imagecontext
- the user agent context
invalidateImage
public void invalidateImage(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.
url
- the url and key for the imagecontext
- the user agent context
releaseImage
public void releaseImage(String url,
FOUserAgent context)
Release an image in the current context.
url
- the url and key for the imagecontext
- the user agent context
removeContext
public void removeContext(FOUserAgent context)
Remove a context and handle all images in the context.
context
- the user agent context
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.