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

ASCCharsetDecoderTest

public class ASCCharsetDecoderTest extends AbstractCharsetDecoderTestCase

Fields Summary
Constructors Summary
Methods Summary
java.nio.ByteBuffergetExceptionByteArray()

        return null;
    
java.nio.ByteBuffergetMalformByteBuffer()

        // FIXME: different here
        ByteBuffer buffer = ByteBuffer.allocate(8);
        buffer.put((byte) -1);
        buffer.put(unibytes);
        buffer.flip();
        return buffer;

        // TODO: how malform?
        // return null;
    
java.nio.ByteBuffergetUnmappedByteBuffer()

        // FIXME: different here
        return null;
        // ByteBuffer buffer = ByteBuffer.allocate(8);
        // buffer.put((byte)-1);
        // buffer.put(unibytes);
        // buffer.flip();
        // return buffer;

    
protected voidsetUp()

        cs = Charset.forName("ascii");
        unibytes = new byte[] { 32, 98, 117, 102, 102, 101, 114 };
        super.setUp();
    
protected voidtearDown()

        super.tearDown();