org.apache.fop.util
Class ColorSpaceCache
java.lang.Object
org.apache.fop.util.ColorSpaceCache
public class ColorSpaceCache
extends java.lang.Object
Map with cached ICC based ColorSpace objects.
ColorSpace | get(String base, String iccProfileSrc) - Create (if needed) and return an ICC ColorSpace instance.
|
ColorSpaceCache
public ColorSpaceCache(URIResolver resolver)
Default constructor
get
public ColorSpace get(String base,
String iccProfileSrc)
Create (if needed) and return an ICC ColorSpace instance.
The ICC profile source is taken from the src attribute of the color-profile FO element.
If the ICC ColorSpace is not yet in the cache a new one is created and stored in the cache.
The FOP URI resolver is used to try and locate the ICC file.
If that fails null is returned.
base
- a base URI to resolve relative URIsiccProfileSrc
- ICC Profile source to return a ColorSpace for
- ICC ColorSpace object or null if ColorSpace could not be created
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.