1 18 19 package org.apache.batik.ext.awt.color; 20 21 import org.apache.batik.util.SoftReferenceCache; 22 23 30 31 public class NamedProfileCache extends SoftReferenceCache{ 32 33 static NamedProfileCache theCache = new NamedProfileCache(); 34 35 public static NamedProfileCache getDefaultCache() { return theCache; } 36 37 40 public NamedProfileCache() { } 41 42 50 public synchronized boolean isPresent(String profileName) { 51 return super.isPresentImpl(profileName); 52 } 53 54 60 public synchronized boolean isDone(String profileName) { 61 return super.isDoneImpl(profileName); 62 } 63 64 68 public synchronized ICCColorSpaceExt request(String profileName) { 69 return (ICCColorSpaceExt)super.requestImpl(profileName); 70 } 71 72 77 public synchronized void clear(String profileName) { 78 super.clearImpl(profileName); 79 } 80 81 88 public synchronized void put(String profileName, ICCColorSpaceExt bi) { 89 super.putImpl(profileName, bi); 90 } 91 } 92 | Popular Tags |