Java Crie um StringWriter

// Creates a StringWriter
StringWriter output = new StringWriter();
SAMER SAEID