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

ISOCharsetTest

public class ISOCharsetTest extends AbstractCharsetTestCase
Test ISO-8859-1.

Fields Summary
Constructors Summary
public ISOCharsetTest()
Constructor.

        super("ISO-8859-1", new String[] { "iso-ir-100", "8859_1",
                "ISO_8859-1", "ISO8859_1", "819", "csISOLatin1", "IBM-819",
                "ISO_8859-1:1987", "latin1", "cp819", "ISO8859-1", "IBM819",
                "ISO_8859_1", "l1" }, true, true);
    
Methods Summary
public voidtestDecode_Normal()

        byte[] input = new byte[] { 97, 98, 63, 63 };
        char[] output = "ab??".toCharArray();
        internalTestDecode(input, output);
    
public voidtestEncode_Normal()

        String input = "ab\u5D14\u654F";
        byte[] output = new byte[] { 97, 98,
                this.testingCharset.newEncoder().replacement()[0],
                this.testingCharset.newEncoder().replacement()[0] };
        internalTestEncode(input, output);