|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.pinyin4j.ChineseToPinyinResource
class ChineseToPinyinResource
Manage all external resources required in PinyinHelper class.
| Nested Class Summary | |
|---|---|
private static class |
ChineseToPinyinResource.ChineseToPinyinResourceHolder
Singleton implementation helper. |
(package private) class |
ChineseToPinyinResource.Field
A class encloses common string constants used in Properties files |
| Field Summary | |
|---|---|
private java.util.Properties |
unicodeToHanyuPinyinTable
A hash table contains |
| Constructor Summary | |
|---|---|
private |
ChineseToPinyinResource()
Private constructor as part of the singleton pattern. |
| Method Summary | |
|---|---|
private java.lang.String |
getHanyuPinyinRecordFromChar(char ch)
|
(package private) java.lang.String[] |
getHanyuPinyinStringArray(char ch)
Get the unformatted Hanyu Pinyin representations of the given Chinese character in array format. |
(package private) static ChineseToPinyinResource |
getInstance()
Singleton factory method. |
private java.util.Properties |
getUnicodeToHanyuPinyinTable()
|
private void |
initializeResource()
Initialize a hash-table contains |
private boolean |
isValidRecord(java.lang.String record)
|
private void |
setUnicodeToHanyuPinyinTable(java.util.Properties unicodeToHanyuPinyinTable)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.util.Properties unicodeToHanyuPinyinTable
| Constructor Detail |
|---|
private ChineseToPinyinResource()
| Method Detail |
|---|
private void setUnicodeToHanyuPinyinTable(java.util.Properties unicodeToHanyuPinyinTable)
unicodeToHanyuPinyinTable - The unicodeToHanyuPinyinTable to set.private java.util.Properties getUnicodeToHanyuPinyinTable()
private void initializeResource()
java.lang.String[] getHanyuPinyinStringArray(char ch)
ch - given Chinese character in Unicode
private boolean isValidRecord(java.lang.String record)
record - given record string of Hanyu Pinyin
private java.lang.String getHanyuPinyinRecordFromChar(char ch)
ch - given Chinese character in Unicode
static ChineseToPinyinResource getInstance()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||