public class DefaultResourceCache extends Object implements ResourceCache
| Constructor and Description |
|---|
DefaultResourceCache() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the cache
|
PDColorSpace |
getColorSpace(COSObjectKey key)
Returns the color space resource for the given key object, if it is in the cache.
|
PDExtendedGraphicsState |
getExtGState(COSObjectKey key)
Returns the external graphics state resource for the given key object, if it is in the cache.
|
PDFont |
getFont(COSObjectKey key)
Returns the font resource for the given key object, if it is in the cache.
|
PDAbstractPattern |
getPattern(COSObjectKey key)
Returns the pattern resource for the given key object, if it is in the cache.
|
PDPropertyList |
getProperties(COSObjectKey key)
Returns the property list resource for the given key object, if it is in the cache.
|
PDShading |
getShading(COSObjectKey key)
Returns the shading resource for the given key object, if it is in the cache.
|
PDXObject |
getXObject(COSObjectKey key)
Returns the XObject resource for the given key object, if it is in the cache.
|
void |
put(COSObjectKey key,
PDAbstractPattern pattern)
Puts the given key pattern resource in the cache.
|
void |
put(COSObjectKey key,
PDColorSpace colorSpace)
Puts the given key color space resource in the cache.
|
void |
put(COSObjectKey key,
PDExtendedGraphicsState extGState)
Puts the given key extended graphics state resource in the cache.
|
void |
put(COSObjectKey key,
PDFont font)
Puts the given key font resource in the cache.
|
void |
put(COSObjectKey key,
PDPropertyList propertyList)
Puts the given key property list resource in the cache.
|
void |
put(COSObjectKey key,
PDShading shading)
Puts the given key shading resource in the cache.
|
void |
put(COSObjectKey key,
PDXObject xobject)
Puts the given key XObject resource in the cache.
|
public PDFont getFont(COSObjectKey key)
ResourceCachegetFont in interface ResourceCachepublic void put(COSObjectKey key, PDFont font)
ResourceCacheput in interface ResourceCachepublic PDColorSpace getColorSpace(COSObjectKey key)
ResourceCachegetColorSpace in interface ResourceCachepublic void put(COSObjectKey key, PDColorSpace colorSpace)
ResourceCacheput in interface ResourceCachepublic PDExtendedGraphicsState getExtGState(COSObjectKey key)
ResourceCachegetExtGState in interface ResourceCachepublic void put(COSObjectKey key, PDExtendedGraphicsState extGState)
ResourceCacheput in interface ResourceCachepublic PDShading getShading(COSObjectKey key)
ResourceCachegetShading in interface ResourceCachepublic void put(COSObjectKey key, PDShading shading)
ResourceCacheput in interface ResourceCachepublic PDAbstractPattern getPattern(COSObjectKey key)
ResourceCachegetPattern in interface ResourceCachepublic void put(COSObjectKey key, PDAbstractPattern pattern)
ResourceCacheput in interface ResourceCachepublic PDPropertyList getProperties(COSObjectKey key)
ResourceCachegetProperties in interface ResourceCachepublic void put(COSObjectKey key, PDPropertyList propertyList)
ResourceCacheput in interface ResourceCachepublic PDXObject getXObject(COSObjectKey key)
ResourceCachegetXObject in interface ResourceCachepublic void put(COSObjectKey key, PDXObject xobject)
ResourceCacheput in interface ResourceCachepublic void clear()
ResourceCacheclear in interface ResourceCacheCopyright © 2020 sejda. All rights reserved.