When I try to send over socket it gets converted to on the client side.

George McKinney

What types are you sending theough the stream?

If you are sending a sequence of ASCII text lines with strange :) line-enders. I'd alternate using writeUTF(<oneLineString;) with write(lineEndBytes, 0,3) where lineEndBytes is a 3 byte array of [ , , ].

I don't THINK that DataOutputStream should muck with this. You could also use writeBytes(String), but it drops the high byte of each Unicode character in the String; for ASCII that will result in the same output.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact