public class CMap
extends java.lang.Object
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getName() |
Returns the name of the CMap.
|
java.lang.String |
getOrdering() |
Returns the ordering of the CIDSystemInfo.
|
java.lang.String |
getRegistry() |
Returns the registry of the CIDSystemInfo.
|
int |
getSpaceMapping() |
Returns the mapping for the space character.
|
int |
getSupplement() |
Returns the supplement of the CIDSystemInfo.
|
int |
getType() |
Returns the type of the CMap.
|
java.lang.String |
getVersion() |
Returns the version of the CMap.
|
int |
getWMode() |
Returns the WMode of a CMap.
|
boolean |
hasCIDMappings() |
This will tell if this cmap has any CID mappings.
|
boolean |
hasUnicodeMappings() |
This will tell if this cmap has any Unicode mappings.
|
int |
readCode(java.io.InputStream in) |
Reads a character code from a string in the content stream.
|
void |
setName(java.lang.String name) |
Sets the name of the CMap.
|
void |
setOrdering(java.lang.String newOrdering) |
Sets the ordering of the CIDSystemInfo.
|
void |
setRegistry(java.lang.String newRegistry) |
Sets the registry of the CIDSystemInfo.
|
void |
setSupplement(int newSupplement) |
Sets the supplement of the CIDSystemInfo.
|
void |
setType(int type) |
Sets the type of the CMap.
|
void |
setVersion(java.lang.String version) |
Sets the version of the CMap.
|
void |
setWMode(int newWMode) |
Sets the WMode of a CMap.
|
int |
toCID(int code) |
Returns the CID for the given character code.
|
java.lang.String |
toString() |
|
java.lang.String |
toUnicode(int code) |
Returns the sequence of Unicode characters for the given character code.
|
public boolean hasCIDMappings()
public boolean hasUnicodeMappings()
public java.lang.String toUnicode(int code)
code
- character codepublic int readCode(java.io.InputStream in) throws java.io.IOException
See "CMap Mapping" and "Handling Undefined Characters" in PDF32000 for more details.
in
- string streamjava.io.IOException
- if there was an error reading the stream or CMappublic int toCID(int code)
code
- character codepublic int getWMode()
public void setWMode(int newWMode)
newWMode
- the new WMode.public java.lang.String getName()
public void setName(java.lang.String name)
name
- the CMap name.public java.lang.String getVersion()
public void setVersion(java.lang.String version)
version
- the CMap version.public int getType()
public void setType(int type)
type
- the CMap type.public java.lang.String getRegistry()
public void setRegistry(java.lang.String newRegistry)
newRegistry
- the registry.public java.lang.String getOrdering()
public void setOrdering(java.lang.String newOrdering)
newOrdering
- the ordering.public int getSupplement()
public void setSupplement(int newSupplement)
newSupplement
- the supplement.public int getSpaceMapping()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2008–2018. All rights reserved.