Code example for CharArrayWriter

Methods: close

0
 
    /** 
     * @tests java.io.CharArrayWriter#close() 
     */ 
    public void test_close() { 
        cw.close();
    } 
 
    /** 
     * @tests java.io.CharArrayWriter#flush() 
     */ 
    public void test_flush() { 
        cw.flush();
    } 
 
    /** 
     * @tests java.io.CharArrayWriter#reset() 
     */ 
    public void test_reset() throws IOException { 
        cw.write("HelloWorld", 5, 5);
        cw.reset();