Package io.rong.imkit.utils

## Class CharacterParser

- All Implemented Interfaces:

      public class CharacterParser

  Java汉字转换为拼音

- - ### 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` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `CharacterParser()` |

  - ### 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)` | 单字解析 * * @param str * @return
    `String` | `getSelling(String chs)` | 词组解析 * * @param chs * @return
    `String` | `getSpelling()` |

    - ### Methods inherited from class java.lang.Object

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

- - ### Constructor Detail

    - #### CharacterParser

          CharacterParser()

  - ### Method Detail

    - #### getResource

           String getResource()

    - #### setResource

           void setResource(String resource)

    - #### getInstance

           static CharacterParser getInstance()

    - #### convert

           String convert(String str)

      单字解析 * * @param str * @return

    - #### getSelling

           String getSelling(String chs)

      词组解析 * * @param chs * @return

    - #### getSpelling

           String getSpelling()