public class NamedProfileCache extends SoftReferenceCache
map
Constructor and Description |
---|
NamedProfileCache()
Let people create there own caches.
|
Modifier and Type | Method and Description |
---|---|
void |
clear(java.lang.String profileName)
Clear the entry for String.
|
static NamedProfileCache |
getDefaultCache() |
boolean |
isDone(java.lang.String profileName)
Check if
request(profileName) will return immediately with the
ICCColorSpaceExt. |
boolean |
isPresent(java.lang.String profileName)
Check if
request(profileName) will return with a ICCColorSpaceExt
(not putting you on the hook for it). |
void |
put(java.lang.String profileName,
org.apache.xmlgraphics.java2d.color.ICCColorSpaceWithIntent bi)
Associate bi with profileName.
|
org.apache.xmlgraphics.java2d.color.ICCColorSpaceWithIntent |
request(java.lang.String profileName)
If this returns null then you are now 'on the hook'.
|
clearImpl, flush, isDoneImpl, isPresentImpl, putImpl, requestImpl
public static NamedProfileCache getDefaultCache()
public boolean isPresent(java.lang.String profileName)
request(profileName)
will return with a ICCColorSpaceExt
(not putting you on the hook for it). Note that it is possible
that this will return true but between this call and the call
to request the soft-reference will be cleared. So it
is still possible for request to return NULL, just much less
likely (you can always call 'clear' in that case).public boolean isDone(java.lang.String profileName)
request(profileName)
will return immediately with the
ICCColorSpaceExt. Note that it is possible that this will return
true but between this call and the call to request the
soft-reference will be cleared.public org.apache.xmlgraphics.java2d.color.ICCColorSpaceWithIntent request(java.lang.String profileName)
profileName
- the profile namepublic void clear(java.lang.String profileName)
public void put(java.lang.String profileName, org.apache.xmlgraphics.java2d.color.ICCColorSpaceWithIntent bi)
Copyright © 2022 Apache Software Foundation. All Rights Reserved.