- All Known Implementing Classes:
DefaultResourceCache
public interface ResourceCache
A document-wide cache for page resources.
- Author:
- John Hewson
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears the cacheReturns the color space resource for the given key object, if it is in the cache.getExtGState(COSObjectKey key) Returns the external graphics state resource for the given key object, if it is in the cache.getFont(COSObjectKey key) Returns the font resource for the given key object, if it is in the cache.getPattern(COSObjectKey key) Returns the pattern resource for the given key object, if it is in the cache.Returns the property list resource for the given key object, if it is in the cache.getShading(COSObjectKey key) Returns the shading resource for the given key object, if it is in the cache.getXObject(COSObjectKey key) Returns the XObject resource for the given key object, if it is in the cache.voidput(COSObjectKey key, PDPropertyList propertyList) Puts the given key property list resource in the cache.voidput(COSObjectKey key, PDFont font) Puts the given key font resource in the cache.voidput(COSObjectKey key, PDColorSpace colorSpace) Puts the given key color space resource in the cache.voidput(COSObjectKey key, PDAbstractPattern pattern) Puts the given key pattern resource in the cache.voidput(COSObjectKey key, PDXObject xobject) Puts the given key XObject resource in the cache.voidput(COSObjectKey key, PDShading shading) Puts the given key shading resource in the cache.voidput(COSObjectKey key, PDExtendedGraphicsState extGState) Puts the given key extended graphics state resource in the cache.
-
Method Details
-
getFont
Returns the font resource for the given key object, if it is in the cache.- Throws:
IOException
-
getColorSpace
Returns the color space resource for the given key object, if it is in the cache.- Throws:
IOException
-
getExtGState
Returns the external graphics state resource for the given key object, if it is in the cache. -
getShading
Returns the shading resource for the given key object, if it is in the cache.- Throws:
IOException
-
getPattern
Returns the pattern resource for the given key object, if it is in the cache.- Throws:
IOException
-
getProperties
Returns the property list resource for the given key object, if it is in the cache. -
getXObject
Returns the XObject resource for the given key object, if it is in the cache.- Throws:
IOException
-
put
Puts the given key font resource in the cache.- Throws:
IOException
-
put
Puts the given key color space resource in the cache.- Throws:
IOException
-
put
Puts the given key extended graphics state resource in the cache. -
put
Puts the given key shading resource in the cache.- Throws:
IOException
-
put
Puts the given key pattern resource in the cache.- Throws:
IOException
-
put
Puts the given key property list resource in the cache. -
put
Puts the given key XObject resource in the cache.- Throws:
IOException
-
clear
void clear()Clears the cache
-