public class DefaultResourceCache extends Object implements ResourceCache
| Constructor and Description |
|---|
DefaultResourceCache()
Default constructor.
|
DefaultResourceCache(boolean enableStableCache)
Constructor providing a parameter to enable/disable the stable object cache.
|
| Modifier and Type | Method and Description |
|---|---|
PDColorSpace |
getColorSpace(COSObject indirect)
Returns the color space resource for the given indirect object, if it is in the cache.
|
PDExtendedGraphicsState |
getExtGState(COSObject indirect)
Returns the extended graphics state resource for the given indirect object, if it is in the cache.
|
PDFont |
getFont(COSObject indirect)
Returns the font resource for the given indirect object, if it is in the cache.
|
PDAbstractPattern |
getPattern(COSObject indirect)
Returns the pattern resource for the given indirect object, if it is in the cache.
|
PDPropertyList |
getProperties(COSObject indirect)
Returns the property list resource for the given indirect object, if it is in the cache.
|
PDShading |
getShading(COSObject indirect)
Returns the shading resource for the given indirect object, if it is in the cache.
|
PDXObject |
getXObject(COSObject indirect)
Returns the XObject resource for the given indirect object, if it is in the cache.
|
void |
put(COSObject indirect,
PDAbstractPattern pattern)
Puts the given indirect pattern resource in the cache.
|
void |
put(COSObject indirect,
PDColorSpace colorSpace)
Puts the given indirect color space resource in the cache.
|
void |
put(COSObject indirect,
PDExtendedGraphicsState extGState)
Puts the given indirect extended graphics state resource in the cache.
|
void |
put(COSObject indirect,
PDFont font)
Puts the given indirect font resource in the cache.
|
void |
put(COSObject indirect,
PDPropertyList propertyList)
Puts the given indirect property list resource in the cache.
|
void |
put(COSObject indirect,
PDShading shading)
Puts the given indirect shading resource in the cache.
|
void |
put(COSObject indirect,
PDXObject xobject)
Puts the given indirect XObject resource in the cache.
|
PDColorSpace |
removeColorSpace(COSObject indirect)
Removes the given indirect color space resource from the cache.
|
PDExtendedGraphicsState |
removeExtState(COSObject indirect)
Removes the given indirect extended graphics state resource from the cache.
|
PDFont |
removeFont(COSObject indirect)
Removes the given indirect font resource from the cache.
|
PDAbstractPattern |
removePattern(COSObject indirect)
Removes the given indirect pattern resource from the cache.
|
PDPropertyList |
removeProperties(COSObject indirect)
Removes the given indirect property list resource from the cache.
|
PDShading |
removeShading(COSObject indirect)
Removes the given indirect shading resource from the cache.
|
PDXObject |
removeXObject(COSObject indirect)
Removes the given indirect XObject resource from the cache.
|
public DefaultResourceCache()
public DefaultResourceCache(boolean enableStableCache)
enableStableCache - enables/disables the stable object cachepublic PDFont getFont(COSObject indirect)
ResourceCachegetFont in interface ResourceCacheindirect - the indirect reference of the font to be returnedpublic void put(COSObject indirect, PDFont font)
ResourceCacheput in interface ResourceCacheindirect - the indirect reference of the font to be cachedfont - the font to be cachedpublic PDFont removeFont(COSObject indirect)
ResourceCacheremoveFont in interface ResourceCacheindirect - the indirect reference of the font to be removedpublic PDColorSpace getColorSpace(COSObject indirect)
ResourceCachegetColorSpace in interface ResourceCacheindirect - the indirect reference of the colorspace to be returnedpublic void put(COSObject indirect, PDColorSpace colorSpace)
ResourceCacheput in interface ResourceCacheindirect - the indirect reference of the colorspace to be cachedcolorSpace - the colorspace to be cachedpublic PDColorSpace removeColorSpace(COSObject indirect)
ResourceCacheremoveColorSpace in interface ResourceCacheindirect - the indirect reference of the color space to be removedpublic PDExtendedGraphicsState getExtGState(COSObject indirect)
ResourceCachegetExtGState in interface ResourceCacheindirect - the indirect reference of the extended graphics state to be returnedpublic void put(COSObject indirect, PDExtendedGraphicsState extGState)
ResourceCacheput in interface ResourceCacheindirect - the indirect reference of the extended graphics state to be cachedextGState - the extended graphics state to be cachedpublic PDExtendedGraphicsState removeExtState(COSObject indirect)
ResourceCacheremoveExtState in interface ResourceCacheindirect - the indirect reference of the extended graphics state to be removedpublic PDShading getShading(COSObject indirect)
ResourceCachegetShading in interface ResourceCacheindirect - the indirect reference of the shading to be returnedpublic void put(COSObject indirect, PDShading shading)
ResourceCacheput in interface ResourceCacheindirect - the indirect reference of the shading to be cachedshading - the shading to be cachedpublic PDShading removeShading(COSObject indirect)
ResourceCacheremoveShading in interface ResourceCacheindirect - the indirect reference of the shading to be removedpublic PDAbstractPattern getPattern(COSObject indirect)
ResourceCachegetPattern in interface ResourceCacheindirect - the indirect reference of the pattern to be returnedpublic void put(COSObject indirect, PDAbstractPattern pattern)
ResourceCacheput in interface ResourceCacheindirect - the indirect reference of the pattern to be cachedpattern - the pattern to be cachedpublic PDAbstractPattern removePattern(COSObject indirect)
ResourceCacheremovePattern in interface ResourceCacheindirect - the indirect reference of the pattern to be removedpublic PDPropertyList getProperties(COSObject indirect)
ResourceCachegetProperties in interface ResourceCacheindirect - the indirect reference of the property list to be returnedpublic void put(COSObject indirect, PDPropertyList propertyList)
ResourceCacheput in interface ResourceCacheindirect - the indirect reference of the property list to be cachedpropertyList - the property list to be cachedpublic PDPropertyList removeProperties(COSObject indirect)
ResourceCacheremoveProperties in interface ResourceCacheindirect - the indirect reference of the property list to be removedpublic PDXObject getXObject(COSObject indirect)
ResourceCachegetXObject in interface ResourceCacheindirect - the indirect reference of the XObject to be returnedpublic void put(COSObject indirect, PDXObject xobject)
ResourceCacheput in interface ResourceCacheindirect - the indirect reference of the XObject to be cachedxobject - the XObject to be cachedpublic PDXObject removeXObject(COSObject indirect)
ResourceCacheremoveXObject in interface ResourceCacheindirect - the indirect reference of the XObject to be removedCopyright © 2002–2025 The Apache Software Foundation. All rights reserved.