Write to XMLSocket without adding \r\n
<p>I'm trying to communicate with an XMLSocket server: i used to do that with a flash application, but now I'm trying to do it with java.
Right now the code I'm using is</p>

<pre><code>xmlsock = new Socket("127.0.0.1", 1012);
out = new PrintWriter(xmlsock.getOutputStream(), true);
out.println(this.jTextField1.getText()+'\u0000');
</code></pre>

<p>The problem is that, obviously, using println to write in the socket adds at the end of each line \r\n bytes, that make the server read only the first line i send to it. Using print instead of println doesn't seem to send anything at all ( no string received by the server).
So, is there a way to send strings to the server, without adding the \r\n at the end of the string?</p>
