Class CharacterParser

  • All Implemented Interfaces:

    
    public class CharacterParser
    
                        

    Converts Chinese characters to Pinyin

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public static Array<String> pystr
      public String resource
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String getResource()
      void setResource(String resource)
      static CharacterParser getInstance()
      String convert(String str) Converts a single character to Pinyin
      String getSelling(String chs) Converts a phrase (string of characters) to Pinyin
      String getSpelling()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait