Package com.tom_roush.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 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 external 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.
-
-
-
Method Detail
-
getFont
PDFont getFont(COSObject indirect) throws IOException
Returns the font resource for the given indirect object, if it is in the cache.- Throws:
IOException
-
getColorSpace
PDColorSpace getColorSpace(COSObject indirect) throws IOException
Returns the color space resource for the given indirect object, if it is in the cache.- Throws:
IOException
-
getExtGState
PDExtendedGraphicsState getExtGState(COSObject indirect)
Returns the external graphics state resource for the given indirect object, if it is in the cache.
-
getShading
PDShading getShading(COSObject indirect) throws IOException
Returns the shading resource for the given indirect object, if it is in the cache.- Throws:
IOException
-
getPattern
PDAbstractPattern getPattern(COSObject indirect) throws IOException
Returns the pattern resource for the given indirect object, if it is in the cache.- Throws:
IOException
-
getProperties
PDPropertyList getProperties(COSObject indirect)
Returns the property list resource for the given indirect object, if it is in the cache.
-
getXObject
PDXObject getXObject(COSObject indirect) throws IOException
Returns the XObject resource for the given indirect object, if it is in the cache.- Throws:
IOException
-
put
void put(COSObject indirect, PDFont font) throws IOException
Puts the given indirect font resource in the cache.- Throws:
IOException
-
put
void put(COSObject indirect, PDColorSpace colorSpace) throws IOException
Puts the given indirect color space resource in the cache.- Throws:
IOException
-
put
void put(COSObject indirect, PDExtendedGraphicsState extGState)
Puts the given indirect extended graphics state resource in the cache.
-
put
void put(COSObject indirect, PDShading shading) throws IOException
Puts the given indirect shading resource in the cache.- Throws:
IOException
-
put
void put(COSObject indirect, PDAbstractPattern pattern) throws IOException
Puts the given indirect pattern resource in the cache.- Throws:
IOException
-
put
void put(COSObject indirect, PDPropertyList propertyList)
Puts the given indirect property list resource in the cache.
-
put
void put(COSObject indirect, PDXObject xobject) throws IOException
Puts the given indirect XObject resource in the cache.- Throws:
IOException
-
-