|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.itextpdf.text.pdf.fonts.cmaps.AbstractCMap
com.itextpdf.text.pdf.fonts.cmaps.CMapToUnicode
public class CMapToUnicode
This class represents a CMap file.
Constructor Summary | |
---|---|
CMapToUnicode()
Creates a new instance of CMap. |
Method Summary | |
---|---|
Map<Integer,Integer> |
createDirectMapping()
|
Map<Integer,Integer> |
createReverseMapping()
|
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 com.itextpdf.text.pdf.fonts.cmaps.AbstractCMap |
---|
decodeStringToByte, decodeStringToUnicode, getName, getOrdering, getRegistry, getSupplement |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CMapToUnicode()
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 Map<Integer,Integer> createReverseMapping() throws IOException
IOException
public Map<Integer,Integer> createDirectMapping() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |