Package org.apache.pdfbox.pdmodel
Interface ResourceCache
-
- All Known Implementing Classes:
DefaultResourceCache
public interface ResourceCacheA document-wide cache for page resources.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description PDColorSpacegetColorSpace(COSObject indirect)Returns the color space resource for the given indirect object, if it is in the cache.PDExtendedGraphicsStategetExtGState(COSObject indirect)Returns the extended graphics state resource for the given indirect object, if it is in the cache.PDFontgetFont(COSObject indirect)Returns the font resource for the given indirect object, if it is in the cache.PDAbstractPatterngetPattern(COSObject indirect)Returns the pattern resource for the given indirect object, if it is in the cache.PDPropertyListgetProperties(COSObject indirect)Returns the property list resource for the given indirect object, if it is in the cache.PDShadinggetShading(COSObject indirect)Returns the shading resource for the given indirect object, if it is in the cache.PDXObjectgetXObject(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.voidput(COSObject indirect, PDFont font)Puts 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.voidput(COSObject indirect, PDXObject xobject)Puts the given indirect XObject resource in the cache.voidput(COSObject indirect, PDShading shading)Puts 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 Detail
-
getFont
PDFont getFont(COSObject indirect)
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
PDColorSpace getColorSpace(COSObject indirect)
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
PDExtendedGraphicsState getExtGState(COSObject indirect)
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
PDShading getShading(COSObject indirect)
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
PDAbstractPattern getPattern(COSObject indirect)
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
PDPropertyList getProperties(COSObject indirect)
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
PDXObject getXObject(COSObject indirect)
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
void put(COSObject indirect, PDFont font)
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
void put(COSObject indirect, PDColorSpace colorSpace)
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
void put(COSObject indirect, PDExtendedGraphicsState extGState)
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
void put(COSObject indirect, PDShading shading)
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
void put(COSObject indirect, PDAbstractPattern pattern)
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
void put(COSObject indirect, PDPropertyList propertyList)
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
void put(COSObject indirect, PDXObject xobject)
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
default PDColorSpace removeColorSpace(COSObject indirect)
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
default PDExtendedGraphicsState removeExtState(COSObject indirect)
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
default PDFont removeFont(COSObject indirect)
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
default PDShading removeShading(COSObject indirect)
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
default PDAbstractPattern removePattern(COSObject indirect)
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
default PDPropertyList removeProperties(COSObject indirect)
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
-
-