Java printwriter
<p>I have a proxy class, that receives a request and send the request to another server and gets the response and directs it back to original requestor. I use a socket to connect to the server and use Printwriter to write to it. 
Something like this </p>

<pre><code>    private PrintWriter out;

    public void writeString( String message ) throws IOException {
        openStreams();
        out.print( message);
        out.flush();
    }
</code></pre>

<p>I start the proxy and send request to server via proxy. The problem is I see a lot of these request/response in the console of the proxy. Is there is a different way of doing this, where the console is left cleaner. I am new to socket programing</p>

<p>Thanks in advance</p>
