CharArrayWriter Class in java

In the previous post, we have seen BufferedInputStream and BufferedOutputStream. In this post, we will CharArrayWriter class.

This class writes characters to a writer and converts those written characters into a char arary.

CharArrayWriter class can be used to write data to multiple files. Its buffer automatically grows when data is written in this stream. Using close() method has no effect on this.

Example of CharArrayWriter class:

Ask Question
Have any question or suggestion for us?Please feel free to post in Q&A Forum


BufferedInputStream and BufferedOutputStream in java
Console Class in java
Shekhar Sharma

Shekhar Sharma

Shekhar Sharma is founder of He is an automation engineer having more than 8 years of experience who loves troubleshooting in automation and finding innovative ways to solve the problems. His other leisurely activities includes playing harmonica, paintings, sketching portrait, watching movies and travelling etc.

You may also like...

1 Response

  1. August 8, 2015

    […] the previous post, we have seen CharArrayWriter class. In this post, we will see the usage of Console […]

Leave a Reply

Your email address will not be published. Required fields are marked *