FileDocCategorySizeDatePackage
StringReaderTest.javaAPI DocAndroid 1.5 API1375Wed May 06 22:42:02 BST 2009android.core

StringReaderTest

public class StringReaderTest extends TestCase

Fields Summary
Constructors Summary
Methods Summary
public voidtestStringReader()

        String str = "AbCdEfGhIjKlMnOpQrStUvWxYz";

        StringReader a = new StringReader(str);
        StringReader b = new StringReader(str);
        StringReader c = new StringReader(str);
        StringReader d = new StringReader(str);

        assertEquals(str, IOUtil.read(a));
        assertEquals("AbCdEfGhIj", IOUtil.read(b, 10));
        assertEquals("bdfhjlnprtvxz", IOUtil.skipRead(c));
        assertEquals("AbCdEfGdEfGhIjKlMnOpQrStUvWxYz", IOUtil.markRead(d, 3, 4));