public class UnicodeMap
extends java.lang.Object
UnicodeMap class to search alternative unicode for extfont codepoint.
Constructor and Description |
---|
UnicodeMap(java.io.File mapFile)
Simple constructor.
|
UnicodeMap(java.lang.String title,
java.io.File dir)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
get(int extCode)
Get Unicode character code from map.
|
java.lang.String |
getNarrow(int extCode)
Get unicode character code from narrow map.
|
java.util.Map<java.lang.Integer,java.lang.String> |
getNarrowMap()
Simple map getter.
|
java.lang.String |
getWide(int extCode)
Get unicode character code from wide map.
|
java.util.Map<java.lang.Integer,java.lang.String> |
getWideMap()
Simple map getter.
|
public UnicodeMap(java.lang.String title, java.io.File dir) throws EBException
Constructor.
title
- target dictionary titledir
- target dictionary directoryEBException
- when unicode map does not exist.public UnicodeMap(java.io.File mapFile) throws EBException
Simple constructor.
mapFile
- map file.EBException
- when loading error happened.public java.util.Map<java.lang.Integer,java.lang.String> getNarrowMap()
Simple map getter.
public java.util.Map<java.lang.Integer,java.lang.String> getWideMap()
Simple map getter.
public java.lang.String getNarrow(int extCode)
Get unicode character code from narrow map.
extCode
- to query.public java.lang.String getWide(int extCode)
Get unicode character code from wide map.
extCode
- to query.public java.lang.String get(int extCode)
Get Unicode character code from map.
extCode
- to query