FileDocCategorySizeDatePackage
Mutf8Test.javaAPI DocAndroid 5.1 API1445Thu Mar 12 22:18:30 GMT 2015com.android.dx.util

Mutf8Test

public final class Mutf8Test extends TestCase

Fields Summary
Constructors Summary
Methods Summary
public voidtestDecode()

        ByteInput in = new ByteArrayByteInput(
                new byte[] { 'A", 'B", 'C", (byte) 0xc0, (byte) 0x80, 0, 'E" });
        assertEquals('A", in.readByte());
        assertEquals("BC\u0000", Mutf8.decode(in, new char[3]));
        assertEquals('E", in.readByte());
    
public voidtestEncode()

        assertEquals(Arrays.toString(new byte[] { 'B", 'C", (byte) 0xc0, (byte) 0x80 }),
                Arrays.toString(Mutf8.encode("BC\u0000")));