UTF16LECharsetTestpublic class UTF16LECharsetTest extends AbstractCharsetTestCase
Constructors Summary |
---|
public UTF16LECharsetTest()Constructor.
super("UTF-16LE", new String[] { "UTF_16LE", "X-UTF-16LE" },
true, true);
|
Methods Summary |
---|
public void | testDecode_Normal()
byte[] input = new byte[] { 97, 0, 98, 0, 20, 93, 79, 101 };
char[] output = "ab\u5D14\u654F".toCharArray();
internalTestDecode(input, output);
| public void | testEncode_Normal()
String input = "ab\u5D14\u654F";
byte[] output = new byte[] { 97, 0, 98, 0, 20, 93, 79, 101 };
internalTestEncode(input, output);
|
|