Package java.io
Class CharArrayWriter

Public Method reset

void reset()

_INSERT_METHOD_SIGNATURE_HERE_

Description:

This method resets the buffer. The buffer can be used again without throwing away the already allocated buffer.

Example

   char[] ch = {'H','E','L','L','O'};
   char[] chnew = {'h','e','l','l','o'};
   CharArrayWriter caw = new CharArrayWriter();
   caw.write(ch);
   Logger.log("" + caw.toString());
   caw.reset();
   caw.write(chnew);
   Logger.log("" + caw.toString());

After the construction of a CharArrayWriter, the stream is reseted.