net.sourceforge.pinyin4j
Class PinyinRomanizationTranslator

java.lang.Object
  extended by net.sourceforge.pinyin4j.PinyinRomanizationTranslator

 class PinyinRomanizationTranslator
extends java.lang.Object

Contains the logic translating among different Chinese Romanization systems

Author:
Li Min (xmlerlimin@gmail.com)

Constructor Summary
PinyinRomanizationTranslator()
           
 
Method Summary
(package private) static java.lang.String convertRomanizationSystem(java.lang.String sourcePinyinStr, PinyinRomanizationType sourcePinyinSystem, PinyinRomanizationType targetPinyinSystem)
          convert the given unformatted Pinyin string from source Romanization system to target Romanization system
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PinyinRomanizationTranslator

PinyinRomanizationTranslator()
Method Detail

convertRomanizationSystem

static java.lang.String convertRomanizationSystem(java.lang.String sourcePinyinStr,
                                                  PinyinRomanizationType sourcePinyinSystem,
                                                  PinyinRomanizationType targetPinyinSystem)
convert the given unformatted Pinyin string from source Romanization system to target Romanization system

Parameters:
sourcePinyinStr - the given unformatted Pinyin string
sourcePinyinSystem - the Romanization system which is currently used by the given unformatted Pinyin string
targetPinyinSystem - the Romanization system that should be converted to
Returns:
unformatted Pinyin string in target Romanization system; null if error happens