Package com.itextpdf.io.font.cmap
Class CMapLocationFromBytes
java.lang.Object
com.itextpdf.io.font.cmap.CMapLocationFromBytes
- All Implemented Interfaces:
-
ICMapLocation
Supplies a CMap tokenizer backed by an in-memory byte array.
-
Constructor Summary
ConstructorsConstructorDescriptionCMapLocationFromBytes(byte[] data) Creates a location backed by the provided CMap bytes. -
Method Summary
Modifier and TypeMethodDescriptiongetLocation(String location) Creates a tokenizer for the retained CMap bytes.
-
Constructor Details
-
CMapLocationFromBytes
public CMapLocationFromBytes(byte[] data) Creates a location backed by the provided CMap bytes.- Parameters:
-
data- the CMap source bytes; retained without copying
-
-
Method Details
-
getLocation
Creates a tokenizer for the retained CMap bytes.- Specified by:
-
getLocationin interfaceICMapLocation - Parameters:
-
location- ignored because this implementation has one in-memory source - Returns:
- a new tokenizer over the retained bytes
-