What to use instead of PrintWriter?
<p>Here is my code that I have which is pretty simple and to the point:</p>

<pre><code>public void sendMessage(String message)
{
    writer.println(message);
    writer.flush();
}
</code></pre>

<p>I don't really like to use PrintWriter cause it tends to swallow IOExceptions, this is really the only thing I'm using it for besides sending byte arrays. What can I use instead that won't consume IOExceptions and will still give me the functionality of PrintWriter?</p>
