Package java.io
Class StringWriter

Public Method toString

String toString()

Overrides:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

This method returns the buffer's current value as a string.

Example

   StringWriter sw = new StringWriter ();
   sw.write("Hello World");
   Logger.log(sw.toString());

The example above writes the buffer's current value to the logger.