Package java.io
Class StringWriter
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.