Top Description Fields Constructors Methods
org.apache.pdfbox.pdmodel.font

pack-priv final Class CMapManager

extends Object
Class Inheritance
Imports
org.apache.fontbox.cmap.CMap, .CMapParser, org.apache.pdfbox.io.RandomAccessRead, java.io.IOException, java.util.Map, java.util.concurrent.ConcurrentHashMap

CMap resource loader and cache.

Field Summary

Modifier and TypeField and Description
private static final Map<String, CMap>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static CMap

Returns:

The predefined CMap, never null.
getPredefinedCMap
(String
CMap name
cMapName
)

Fetches the predefined CMap from disk (or cache).

public static CMap

Returns:

the parsed CMap
parseCMap
(RandomAccessRead
the source of the CMap to be read
randomAccessRead
)

Parse the given CMap.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CMAP_CACHEback to summary
private static final Map<String, CMap> CMAP_CACHE

Constructor Detail

CMapManagerback to summary
private CMapManager()

Method Detail

getPredefinedCMapback to summary
public static CMap getPredefinedCMap(String cMapName) throws IOException

Fetches the predefined CMap from disk (or cache).

Parameters
cMapName:String

CMap name

Returns:CMap

The predefined CMap, never null.

parseCMapback to summary
public static CMap parseCMap(RandomAccessRead randomAccessRead) throws IOException

Parse the given CMap.

Parameters
randomAccessRead:RandomAccessRead

the source of the CMap to be read

Returns:CMap

the parsed CMap