public class CMap extends Object
Constructor and Description |
---|
CMap()
Creates a new instance of CMap.
|
Modifier and Type | Method and Description |
---|---|
void |
addCodespaceRange(CodespaceRange range)
This will add a codespace range.
|
void |
addMapping(byte[] src,
String dest)
This will add a mapping.
|
List |
getCodeSpaceRanges()
Getter for property codeSpaceRanges.
|
boolean |
hasOneByteMappings()
This will tell if this cmap has any one byte mappings.
|
boolean |
hasTwoByteMappings()
This will tell if this cmap has any two byte mappings.
|
String |
lookup(byte[] code,
int offset,
int length)
This will perform a lookup into the map.
|
String |
lookup(char code)
This will perform a lookup into the map.
|
public boolean hasOneByteMappings()
public boolean hasTwoByteMappings()
public String lookup(char code)
code
- The code used to lookup.public String lookup(byte[] code, int offset, int length)
code
- The code used to lookup.offset
- The offset into the byte array.length
- The length of the data we are getting.public void addMapping(byte[] src, String dest) throws IOException
src
- The src to the mapping.dest
- The dest to the mapping.IOException
- if the src is invalid.public void addCodespaceRange(CodespaceRange range)
range
- A single codespace range.public List getCodeSpaceRanges()
Copyright © 2020. All rights reserved.