Package com.aowagie.text.pdf.fonts.cmaps
Class CMap
java.lang.Object
com.aowagie.text.pdf.fonts.cmaps.CMap
This class represents a CMap file.
- Since:
- 2.1.4
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
addCodespaceRange
(CodespaceRange range) This will add a codespace range.(package private) void
addMapping
(byte[] src, String dest) This will add a mapping.Getter for property codeSpaceRanges.lookup
(byte[] code, int offset, int length) This will perform a lookup into the map.
-
Field Details
-
codeSpaceRanges
-
singleByteMappings
-
doubleByteMappings
-
-
Constructor Details
-
CMap
public CMap()Creates a new instance of CMap.
-
-
Method Details
-
lookup
This will perform a lookup into the map.- Parameters:
code
- The code used to lookup.offset
- The offset into the byte array.length
- The length of the data we are getting.- Returns:
- The string that matches the lookup.
-
addMapping
This will add a mapping.- Parameters:
src
- The src to the mapping.dest
- The dest to the mapping.- Throws:
IOException
- if the src is invalid.
-
addCodespaceRange
This will add a codespace range.- Parameters:
range
- A single codespace range.
-
getCodeSpaceRanges
Getter for property codeSpaceRanges.- Returns:
- Value of property codeSpaceRanges.
-