title: BufferedWriter and socket in java, write has no effect
body: <p>I'm writing a small client application to communicate with a server. I open a socket between my client and the server and can read anything that goes out from the server with a BufferedReader. This is read in a thread. However, when I write on the socket using a BufferedReader, nothing happens ! No exception but not any server response (and it should have a server response)
  Here is my code:</p>
  
  <pre><code>socketWritter.write(message);
  socketWritter.write("\n");
  System.out.println(socketWritter.toString());
  socketWritter.flush();
  </code></pre>
  
  <p>My socket is correctly open and mu BufferedWriter correctly initialized :</p>
  
  <pre><code>new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()))
  </code></pre>
  
  <p>I have no idea why this doesn't work ??
  Any help would be great !
  Regards</p>