Code example for CharArrayReader

Methods: markreadresetskip

0
 
    /** 
     * @tests java.io.CharArrayReader#mark(int) 
     */ 
    public void test_markI() throws IOException { 
        cr = new CharArrayReader(hw);
        cr.skip(5L);
        cr.mark(100);
        cr.read();
        cr.reset();
        assertEquals("Failed to mark correct position", 'W', cr.read());
    } 
 
    /** 
     * @tests java.io.CharArrayReader#markSupported() 
     */ 
    public void test_markSupported() { 
        cr = new CharArrayReader(hw);
        assertTrue("markSupported returned false", cr.markSupported());
    }