public class StaticResources extends Object
| Modifier and Type | Field and Description |
|---|---|
static Map<String,FontProgram> |
cachedFonts |
static Map<String,CMap> |
cMapCache |
static Map<COSKey,PDStructureNameSpace> |
structureNameSpaceCache |
| Modifier and Type | Method and Description |
|---|---|
static void |
cacheCMap(String name,
CMap cMap)
Caches CMap object.
|
static void |
cacheFontProgram(String key,
FontProgram font) |
static void |
cacheStructureNameSpace(PDStructureNameSpace nameSpace)
Caches structure name space.
|
static void |
clear()
Clears all cached static resources.
|
static FontProgram |
getCachedFont(String key) |
static CMap |
getCMap(String name)
Gets CMap for this string key.
|
static PDStructureNameSpace |
getStructureNameSpace(COSKey key)
Gets cached pd structure name space.
|
public static Map<COSKey,PDStructureNameSpace> structureNameSpaceCache
public static Map<String,FontProgram> cachedFonts
public static void cacheCMap(String name, CMap cMap)
name - is string key for cached CMap.cMap - is CMap object for caching.public static CMap getCMap(String name)
name - is key for CMap.public static void cacheStructureNameSpace(PDStructureNameSpace nameSpace)
nameSpace - is PD structure name space to cache.public static PDStructureNameSpace getStructureNameSpace(COSKey key)
key - is COSKey of namespace to get.public static void cacheFontProgram(String key, FontProgram font)
public static FontProgram getCachedFont(String key)
public static void clear()
Copyright © 2015–2017 The veraPDF Consortium. All rights reserved.