title: How do you "empty" a StringWriter in Java?
body: <p>What is the correct way to "empty" a <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/StringWriter.html" rel="noreferrer"><code>StringWriter</code></a> in Java so that I can reuse the <code>StringWriter</code> without having to create a new one?  Neither <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/StringWriter.html#flush()" rel="noreferrer"><code>StringWriter.flush()</code></a> nor <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/StringWriter.html#close()" rel="noreferrer"><code>StringWriter.close()</code></a> seem to have the desired effect.</p>