UTF16BECharsetTestpublic class UTF16BECharsetTest extends AbstractCharsetTestCase
Constructors Summary |
---|
public UTF16BECharsetTest()Constructor.
super("UTF-16BE", new String[] { "X-UTF-16BE", "UTF_16BE" },
true, true); // "ISO-10646-UCS-2"
|
Methods Summary |
---|
public void | testDecode_Normal()
byte[] input = new byte[] { 0, 97, 0, 98, 93, 20, 101, 79 };
char[] output = "ab\u5D14\u654F".toCharArray();
internalTestDecode(input, output);
| public void | testEncode_Normal()
String input = "ab\u5D14\u654F";
byte[] output = new byte[] { 0, 97, 0, 98, 93, 20, 101, 79 };
internalTestEncode(input, output);
|
|