(StringBuffer str)
| 105 | } |
| 106 | |
| 107 | public static StringBuffer toUTFSb(StringBuffer str) { |
| 108 | return new StringBuffer(new String(toUTFArray(str.toString()))); |
| 109 | } |
| 110 | public static byte[] toUTFArray(String str) { |
| 111 | int srcLen = str.length(); |
| 112 | // srcLen * 2 because russian utf8 character is 2 bytes length and we are russian. |
no test coverage detected