public class DefaultResourceCache extends Object implements ResourceCache
| Constructor and Description |
|---|
DefaultResourceCache() |
| Modifier and Type | Method and Description |
|---|---|
PDColorSpace |
getColorSpace(COSObject indirect)
Returns the color space resource for the given indirect object, if it is in the cache.
|
PDExtendedGraphicsState |
getExtGState(COSObject indirect)
Returns the external graphics state resource for the given indirect object, if it is in the
cache.
|
PDFont |
getFont(COSObject indirect)
Returns the font resource for the given indirect object, if it is in the cache.
|
PDAbstractPattern |
getPattern(COSObject indirect)
Returns the pattern resource for the given indirect object, if it is in the cache.
|
PDPropertyList |
getProperties(COSObject indirect)
Returns the property list resource for the given indirect object, if it is in the cache.
|
PDShading |
getShading(COSObject indirect)
Returns the shading resource for the given indirect object, if it is in the cache.
|
PDXObject |
getXObject(COSObject indirect)
Returns the XObject resource for the given indirect object, if it is in the cache.
|
void |
put(COSObject indirect,
PDAbstractPattern pattern)
Puts the given indirect pattern resource in the cache.
|
void |
put(COSObject indirect,
PDColorSpace colorSpace)
Puts the given indirect color space resource in the cache.
|
void |
put(COSObject indirect,
PDExtendedGraphicsState extGState)
Puts the given indirect extended graphics state resource in the cache.
|
void |
put(COSObject indirect,
PDFont font)
Puts the given indirect font resource in the cache.
|
void |
put(COSObject indirect,
PDPropertyList propertyList)
Puts the given indirect property list resource in the cache.
|
void |
put(COSObject indirect,
PDShading shading)
Puts the given indirect shading resource in the cache.
|
void |
put(COSObject indirect,
PDXObject xobject)
Puts the given indirect XObject resource in the cache.
|
public PDFont getFont(COSObject indirect) throws IOException
ResourceCachegetFont in interface ResourceCacheIOExceptionpublic void put(COSObject indirect, PDFont font) throws IOException
ResourceCacheput in interface ResourceCacheIOExceptionpublic PDColorSpace getColorSpace(COSObject indirect) throws IOException
ResourceCachegetColorSpace in interface ResourceCacheIOExceptionpublic void put(COSObject indirect, PDColorSpace colorSpace) throws IOException
ResourceCacheput in interface ResourceCacheIOExceptionpublic PDExtendedGraphicsState getExtGState(COSObject indirect)
ResourceCachegetExtGState in interface ResourceCachepublic void put(COSObject indirect, PDExtendedGraphicsState extGState)
ResourceCacheput in interface ResourceCachepublic PDShading getShading(COSObject indirect) throws IOException
ResourceCachegetShading in interface ResourceCacheIOExceptionpublic void put(COSObject indirect, PDShading shading) throws IOException
ResourceCacheput in interface ResourceCacheIOExceptionpublic PDAbstractPattern getPattern(COSObject indirect) throws IOException
ResourceCachegetPattern in interface ResourceCacheIOExceptionpublic void put(COSObject indirect, PDAbstractPattern pattern) throws IOException
ResourceCacheput in interface ResourceCacheIOExceptionpublic PDPropertyList getProperties(COSObject indirect)
ResourceCachegetProperties in interface ResourceCachepublic void put(COSObject indirect, PDPropertyList propertyList)
ResourceCacheput in interface ResourceCachepublic PDXObject getXObject(COSObject indirect) throws IOException
ResourceCachegetXObject in interface ResourceCacheIOExceptionpublic void put(COSObject indirect, PDXObject xobject) throws IOException
ResourceCacheput in interface ResourceCacheIOExceptionCopyright © 2002–2017 The Apache Software Foundation. All rights reserved.