reading unformatted data from socket in java
<p>I have a server socket application which listens on particular ip and port. Then I have client socket  which  reads input from server and give response.
But my problem is that server do not give formatted line termination characters at the end. so when i use buffered reader readline method it hangs. so how should i read the data send by server.
here server is basically a API(METER).</p>

<p>Here is sample request/response sequence between server and client.</p>

<pre><code>Request: 8/2/2012 3:28:24 PM.60764 (+0.0000 seconds)
 53 0D                                             S.              
Answer: 8/2/2012 3:28:24 PM.87364 (+0.2656 seconds)
 53 50 31 39 35 30 34 37 38 34 0D                  SP19504784.     
Request: 8/2/2012 3:28:24 PM.92064 (+0.0000 seconds)
 53 48 0D                                          SH.             
Answer: 8/2/2012 3:28:24 PM.02964 (+0.1094 seconds)
 53 48 0D                                          SH.             
Request: 8/2/2012 3:28:24 PM.02964 (+0.0000 seconds)
 53 0D                                             S.              
Answer: 8/2/2012 3:28:24 PM.13964 (+0.1094 seconds)
 53 50 31 39 35 30 34 37 38 34 0D                  SP19504784.     
Request: 8/2/2012 3:28:24 PM.20164 (+0.0000 seconds)
 53 48 0D                                          SH.             
Answer: 8/2/2012 3:28:24 PM.31164 (+0.1094 seconds)
 53 48 0D                                          SH.             
Request: 8/2/2012 3:28:24 PM.31164 (+0.0000 seconds)
 80                                                ?               
Answer: 8/2/2012 3:28:24 PM.46764 (+0.1563 seconds)
 FC                                                ü               
Request: 8/2/2012 3:28:24 PM.46764 (+0.0000 seconds)
 F1                                                ñ               
Answer: 8/2/2012 3:28:25 PM.84264 (+0.3750 seconds)
 8A 31 39 35 30 34 37 38 34 88                     ?19504784?      
Request: 8/2/2012 3:28:25 PM.90464 (+0.0000 seconds)
 F1                                                ñ               
Answer: 8/2/2012 3:28:25 PM.02964 (+0.1250 seconds)
 8A 01 41 32 4D 47 30 31 42 B1                     ?.A2MG01B±      
Request: 8/2/2012 3:28:26 PM.81164 (+0.0000 seconds)
 CA F0 00 00 00 00 00 00 00 3A                     Êð.......:      
Answer: 8/2/2012 3:28:26 PM.02964 (+0.2188 seconds)
 C4 00 05 00 C9 31 36 38 C4 B7 B7 3F 2E C9 74 5A   Ä...É168Ä··?.ÉtZ
 02 00 02 00 FE FC C9 A1 0D 07 00 FB FF FD FC C9   ....þüÉ¡...ûÿýüÉ
 1E 0E FD FF FE FF FD FC C9 B8 FE 4E FF FA 01 FF   ..ýÿþÿýüÉ¸þNÿú.ÿ
 FF B9 D0 F9 F0 3F D0 BF 50 9F                     ÿ¹Ðùð?Ð¿P?      
</code></pre>
