|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.lowagie.text.pdf.fonts.cmaps.CMap
public class CMap
This class represents a CMap file.
| Field Summary | |
|---|---|
private List |
codeSpaceRanges
|
private Map |
doubleByteMappings
|
private Map |
singleByteMappings
|
| Constructor Summary | |
|---|---|
CMap()
Creates a new instance of CMap. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private List codeSpaceRanges
private Map singleByteMappings
private Map doubleByteMappings
| Constructor Detail |
|---|
public CMap()
| Method Detail |
|---|
public boolean hasOneByteMappings()
public boolean hasTwoByteMappings()
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()
|
Hosted by Hostbasket | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||