Code example for CharArrayWriter

Methods: toString

0
     * wrapper. The API for CharArrayWriter does not guarantee that it 
     * "remembers" the previous value, so the call is likely to make 
     * a new String every time. 
     */ 
    public String toString() {
        return (charWriter.toString());
    } 
 
    /** 
     * Get the underlying character array. 
     */ 
    public char[] toCharArray() { 
        return (charWriter.toCharArray());
    } 
}