FileDocCategorySizeDatePackage
UTF16LECharsetTest.javaAPI DocAndroid 1.5 API2475Wed May 06 22:41:04 BST 2009tests.api.java.nio.charset

UTF16LECharsetTest

public class UTF16LECharsetTest extends AbstractCharsetTestCase
Test UTF-16LE.

Fields Summary
Constructors Summary
public UTF16LECharsetTest()
Constructor.

        super("UTF-16LE", new String[] { "UTF_16LE", "X-UTF-16LE" },
                true, true);
    
Methods Summary
public voidtestDecode_Normal()

        byte[] input = new byte[] { 97, 0, 98, 0, 20, 93, 79, 101 };
        char[] output = "ab\u5D14\u654F".toCharArray();
        internalTestDecode(input, output);
    
public voidtestEncode_Normal()

        String input = "ab\u5D14\u654F";
        byte[] output = new byte[] { 97, 0, 98, 0, 20, 93, 79, 101 };
        internalTestEncode(input, output);