java.lang.Object | +----java.io.Writer | +----java.io.StringWriter
public class StringWriter extends Writer
A character stream that collects its output in a string buffer, which can then be used to construct a string.