Package org.apache.pdfbox.pdmodel
Interface ResourceCache
- All Known Implementing Classes:
DefaultResourceCache
public interface ResourceCache
A document-wide cache for page resources.
-
Method Summary
Modifier and TypeMethodDescriptiongetColorSpace(COSObject indirect) Returns the color space resource for the given indirect object, if it is in the cache.getExtGState(COSObject indirect) Returns the extended graphics state resource for the given indirect object, if it is in the cache.Returns the font resource for the given indirect object, if it is in the cache.getPattern(COSObject indirect) Returns the pattern resource for the given indirect object, if it is in the cache.getProperties(COSObject indirect) Returns the property list resource for the given indirect object, if it is in the cache.getShading(COSObject indirect) Returns the shading resource for the given indirect object, if it is in the cache.getXObject(COSObject indirect) Returns the XObject resource for the given indirect object, if it is in the cache.voidput(COSObject indirect, PDPropertyList propertyList) Puts the given indirect property list resource in the cache.voidPuts the given indirect font resource in the cache.voidput(COSObject indirect, PDColorSpace colorSpace) Puts the given indirect color space resource in the cache.voidput(COSObject indirect, PDAbstractPattern pattern) Puts the given indirect pattern resource in the cache.voidPuts the given indirect XObject resource in the cache.voidPuts the given indirect shading resource in the cache.voidput(COSObject indirect, PDExtendedGraphicsState extGState) Puts the given indirect extended graphics state resource in the cache.default PDColorSpaceremoveColorSpace(COSObject indirect) Removes the given indirect color space resource from the cache.default PDExtendedGraphicsStateremoveExtState(COSObject indirect) Removes the given indirect extended graphics state resource from the cache.default PDFontremoveFont(COSObject indirect) Removes the given indirect font resource from the cache.default PDAbstractPatternremovePattern(COSObject indirect) Removes the given indirect pattern resource from the cache.default PDPropertyListremoveProperties(COSObject indirect) Removes the given indirect property list resource from the cache.default PDShadingremoveShading(COSObject indirect) Removes the given indirect shading resource from the cache.default PDXObjectremoveXObject(COSObject indirect) Removes the given indirect XObject resource from the cache.
-
Method Details
-
getFont
Returns the font resource for the given indirect object, if it is in the cache.- Parameters:
indirect- the indirect reference of the font to be returned- Returns:
- the cached instance of the referenced font, if available
-
getColorSpace
Returns the color space resource for the given indirect object, if it is in the cache.- Parameters:
indirect- the indirect reference of the colorspace to be returned- Returns:
- the cached instance of the referenced colorspace, if available
-
getExtGState
Returns the extended graphics state resource for the given indirect object, if it is in the cache.- Parameters:
indirect- the indirect reference of the extended graphics state to be returned- Returns:
- the cached instance of the referenced extended graphics state, if available
-
getShading
Returns the shading resource for the given indirect object, if it is in the cache.- Parameters:
indirect- the indirect reference of the shading to be returned- Returns:
- the cached instance of the referenced shading, if available
-
getPattern
Returns the pattern resource for the given indirect object, if it is in the cache.- Parameters:
indirect- the indirect reference of the pattern to be returned- Returns:
- the cached instance of the referenced pattern, if available
-
getProperties
Returns the property list resource for the given indirect object, if it is in the cache.- Parameters:
indirect- the indirect reference of the property list to be returned- Returns:
- the cached instance of the referenced property list, if available
-
getXObject
Returns the XObject resource for the given indirect object, if it is in the cache.- Parameters:
indirect- the indirect reference of the XObject to be returned- Returns:
- the cached instance of the referenced XObject, if available
-
put
Puts the given indirect font resource in the cache.- Parameters:
indirect- the indirect reference of the font to be cachedfont- the font to be cached
-
put
Puts the given indirect color space resource in the cache.- Parameters:
indirect- the indirect reference of the colorspace to be cachedcolorSpace- the colorspace to be cached
-
put
Puts the given indirect extended graphics state resource in the cache.- Parameters:
indirect- the indirect reference of the extended graphics state to be cachedextGState- the extended graphics state to be cached
-
put
Puts the given indirect shading resource in the cache.- Parameters:
indirect- the indirect reference of the shading to be cachedshading- the shading to be cached
-
put
Puts the given indirect pattern resource in the cache.- Parameters:
indirect- the indirect reference of the pattern to be cachedpattern- the pattern to be cached
-
put
Puts the given indirect property list resource in the cache.- Parameters:
indirect- the indirect reference of the property list to be cachedpropertyList- the property list to be cached
-
put
Puts the given indirect XObject resource in the cache.- Parameters:
indirect- the indirect reference of the XObject to be cachedxobject- the XObject to be cached
-
removeColorSpace
Removes the given indirect color space resource from the cache.- Parameters:
indirect- the indirect reference of the color space to be removed- Returns:
- the removed resource if present
-
removeExtState
Removes the given indirect extended graphics state resource from the cache.- Parameters:
indirect- the indirect reference of the extended graphics state to be removed- Returns:
- the removed resource if present
-
removeFont
Removes the given indirect font resource from the cache.- Parameters:
indirect- the indirect reference of the font to be removed- Returns:
- the removed resource if present
-
removeShading
Removes the given indirect shading resource from the cache.- Parameters:
indirect- the indirect reference of the shading to be removed- Returns:
- the removed resource if present
-
removePattern
Removes the given indirect pattern resource from the cache.- Parameters:
indirect- the indirect reference of the pattern to be removed- Returns:
- the removed resource if present
-
removeProperties
Removes the given indirect property list resource from the cache.- Parameters:
indirect- the indirect reference of the property list to be removed- Returns:
- the removed resource if present
-
removeXObject
Removes the given indirect XObject resource from the cache.- Parameters:
indirect- the indirect reference of the XObject to be removed- Returns:
- the removed resource if present
-