| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final Map | |
| private String | |
| private int | |
| private String | |
| private final List | |
| private final Map | |
| private final List | |
| private static final Log | |
| private int | |
| private int | |
| private int | |
| private int | |
| private String | |
| private String | |
| private static final String | |
| private int | |
| private int | |
| private final Map | |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | addCharMapping(byte[]
The character codes to map from. codes, String The Unicode characters to map to. unicode)This will add a character code to Unicode character sequence mapping. |
| pack-priv void | |
| pack-priv void | addCIDRange(byte[]
starting character of the CID range. from, byte[] ending character of the CID range. to, int the cid to be started with. cid)This will add a CID Range. |
| private void | |
| pack-priv void | |
| public byte[] | Returns: the code bytes or null if there is none.The unicode string. unicode)Get the code bytes for an unicode string. |
| public String | |
| public String | |
| public String | |
| public int | Returns: the mapped code for the space characterReturns the mapping for the space character. |
| public int | |
| public int | |
| public String | |
| public int | |
| public boolean | Returns: true If there are any CID mappings, false otherwise.This will tell if this cmap has any CID mappings. |
| public boolean | Returns: true If there are any Unicode mappings, false otherwise.This will tell if this cmap has any Unicode mappings. |
| public int | Returns: character codestring stream in)Reads a character code from a string in the content stream. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public int | Returns: CIDcharacter code as byte array code)Returns the CID for the given character code. |
| public int | |
| public int | Returns: CIDcharacter code code, int the origin byte length of the code length)Returns the CID for the given character code. |
| private int | Returns: CIDcharacter code code, int length)Returns the CID for the given character code. |
| private int | |
| pack-priv static int | |
| private static int | |
| public String | |
| public String | Returns: Unicode characters (may be more than one, e.g "fi" ligature)character code code)Returns the sequence of Unicode characters for the given character code. |
| public String | Returns: Unicode characters (may be more than one, e.g "fi" ligature)character code code, int code length length)Returns the sequence of Unicode characters for the given character code. |
| public String | Returns: Unicode characters (may be more than one, e.g "fi" ligature)bytes of the character code code)Returns the sequence of Unicode characters for the given character code. |
| pack-priv void |
| charToUnicodeOneByte | back to summary |
|---|---|
| private final Map<Integer, String> charToUnicodeOneByte | |
| charToUnicodeTwoBytes | back to summary |
|---|---|
| private final Map<Integer, String> charToUnicodeTwoBytes | |
| cmapName | back to summary |
|---|---|
| private String cmapName | |
| cmapType | back to summary |
|---|---|
| private int cmapType | |
| cmapVersion | back to summary |
|---|---|
| private String cmapVersion | |
| codespaceRanges | back to summary |
|---|---|
| private final List<CodespaceRange> codespaceRanges | |
| codeToCid | back to summary |
|---|---|
| private final Map<Integer, Map<Integer, Integer>> codeToCid | |
| codeToCidRanges | back to summary |
|---|---|
| private final List<CIDRange> codeToCidRanges | |
| LOG | back to summary |
|---|---|
| private static final Log LOG | |
| maxCidLength | back to summary |
|---|---|
| private int maxCidLength | |
| maxCodeLength | back to summary |
|---|---|
| private int maxCodeLength | |
| minCidLength | back to summary |
|---|---|
| private int minCidLength | |
| minCodeLength | back to summary |
|---|---|
| private int minCodeLength | |
| ordering | back to summary |
|---|---|
| private String ordering | |
| registry | back to summary |
|---|---|
| private String registry | |
| SPACE | back to summary |
|---|---|
| private static final String SPACE | |
| spaceMapping | back to summary |
|---|---|
| private int spaceMapping | |
| supplement | back to summary |
|---|---|
| private int supplement | |
| unicodeToByteCodes | back to summary |
|---|---|
| private final Map<String, byte[]> unicodeToByteCodes | |
| wmode | back to summary |
|---|---|
| private int wmode | |
| CMap | back to summary |
|---|---|
| pack-priv CMap() Creates a new instance of CMap. | |
| addCharMapping | back to summary |
|---|---|
| pack-priv void addCharMapping(byte[] codes, String unicode) This will add a character code to Unicode character sequence mapping.
| |
| addCIDMapping | back to summary |
|---|---|
| pack-priv void addCIDMapping(byte[] code, int cid) This will add a CID mapping.
| |
| addCIDRange | back to summary |
|---|---|
| pack-priv void addCIDRange(byte[] from, byte[] to, int cid) This will add a CID Range.
| |
| addCIDRange | back to summary |
|---|---|
| private void addCIDRange(List<CIDRange> cidRanges, int from, int to, int cid, int length) | |
| addCodespaceRange | back to summary |
|---|---|
| pack-priv void addCodespaceRange(CodespaceRange range) This will add a codespace range.
| |
| getCodesFromUnicode | back to summary |
|---|---|
| public byte[] getCodesFromUnicode(String unicode) Get the code bytes for an unicode string.
| |
| getName | back to summary |
|---|---|
| public String getName() Returns the name of the CMap.
| |
| getOrdering | back to summary |
|---|---|
| public String getOrdering() Returns the ordering of the CIDSystemInfo.
| |
| getRegistry | back to summary |
|---|---|
| public String getRegistry() Returns the registry of the CIDSystemInfo.
| |
| getSpaceMapping | back to summary |
|---|---|
| public int getSpaceMapping() Returns the mapping for the space character.
| |
| getSupplement | back to summary |
|---|---|
| public int getSupplement() Returns the supplement of the CIDSystemInfo.
| |
| getType | back to summary |
|---|---|
| public int getType() Returns the type of the CMap.
| |
| getVersion | back to summary |
|---|---|
| public String getVersion() Returns the version of the CMap.
| |
| getWMode | back to summary |
|---|---|
| public int getWMode() Returns the WMode of a CMap. 0 represents a horizontal and 1 represents a vertical orientation.
| |
| hasCIDMappings | back to summary |
|---|---|
| public boolean hasCIDMappings() This will tell if this cmap has any CID mappings.
| |
| hasUnicodeMappings | back to summary |
|---|---|
| public boolean hasUnicodeMappings() This will tell if this cmap has any Unicode mappings.
| |
| readCode | back to summary |
|---|---|
| public int readCode(InputStream in) throws IOException Reads a character code from a string in the content stream. See "CMap Mapping" and "Handling Undefined Characters" in PDF32000 for more details.
| |
| setName | back to summary |
|---|---|
| public void setName(String name) Sets the name of the CMap.
| |
| setOrdering | back to summary |
|---|---|
| public void setOrdering(String newOrdering) Sets the ordering of the CIDSystemInfo.
| |
| setRegistry | back to summary |
|---|---|
| public void setRegistry(String newRegistry) Sets the registry of the CIDSystemInfo.
| |
| setSupplement | back to summary |
|---|---|
| public void setSupplement(int newSupplement) Sets the supplement of the CIDSystemInfo.
| |
| setType | back to summary |
|---|---|
| public void setType(int type) Sets the type of the CMap.
| |
| setVersion | back to summary |
|---|---|
| public void setVersion(String version) Sets the version of the CMap.
| |
| setWMode | back to summary |
|---|---|
| public void setWMode(int newWMode) Sets the WMode of a CMap.
| |
| toCID | back to summary |
|---|---|
| public int toCID(byte[] code) Returns the CID for the given character code.
| |
| toCID | back to summary |
|---|---|
| public int toCID(int code) Returns the CID for the given character code.
This method exists for convenience. It may return false values as the origin byte length of the input value is
unknown and the mapping for some input values aren't unique.
| |
| toCID | back to summary |
|---|---|
| public int toCID(int code, int length) Returns the CID for the given character code.
| |
| toCIDFromRanges | back to summary |
|---|---|
| private int toCIDFromRanges(int code, int length) Returns the CID for the given character code.
| |
| toCIDFromRanges | back to summary |
|---|---|
| private int toCIDFromRanges(byte[] code) Returns the CID for the given character code.
| |
| toInt | back to summary |
|---|---|
| pack-priv static int toInt(byte[] data) Returns an int for the given byte array | |
| toInt | back to summary |
|---|---|
| private static int toInt(byte[] data, int dataLen) Returns an int for the given byte array | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| toUnicode | back to summary |
|---|---|
| public String toUnicode(int code) Returns the sequence of Unicode characters for the given character code.
This method exists for convenience. It may return false values as the origin byte length of the input value is
unknown and the mapping for some input values aren't unique.
| |
| toUnicode | back to summary |
|---|---|
| public String toUnicode(int code, int length) Returns the sequence of Unicode characters for the given character code.
| |
| toUnicode | back to summary |
|---|---|
| public String toUnicode(byte[] code) Returns the sequence of Unicode characters for the given character code.
| |
| useCmap | back to summary |
|---|---|
| pack-priv void useCmap(CMap cmap) Implementation of the usecmap operator. This will copy all of the mappings from one cmap to another.
| |