ChineseUtils { public String convert(String chinese) { String result = null; int ascii = getChineseAscii(chinese); if (ascii > 0 && ascii < 160) { result = String.valueOf((char) ascii); } else { for (int i = (spellingValue.length - 1); i >= 0; i--) { if (spellingValue[i] <= ascii) { result = spellingString[i]; break; } } } return result; }  static ChineseUtils getInstance(); String getResource(); void setResource(String resource); String convert(String chinese); String getSpelling(String chinese); String getSpelling(); String getSpellingFirstLetterUpper(String chinese); String getSpellingFirstLetterLower(String chinese); static String[] spellingString; }
@Test public void convert() throws Exception { }