Article View: borland.public.jbuilder.java.language
Article #7609Sockets and BufferedReader (again)
From: Bill
Date: Wed, 13 Jun 2001 13:02
Date: Wed, 13 Jun 2001 13:02
19 lines
1527 bytes
1527 bytes
I've set up a socket connection between a java client and non-java server. To read from the socket I use a bufferedReader object instantiated from an inputStream obtained from the socket. I then use the read(char[], int, int) method to pick up a variable number of characters from the inputStream. Everything works OK -- most of the time. It appears that when the incoming bytes in the stream have values less than 0x80 or greater than 0xA0, the proper value is read. For any value in between the byte value is converted to hex 3F. I suspect it has something to do with the filter classes and the definition of the unicode but haven't been able to find any specifics. Has anyone see this sort of problem? Thanks Bill
Technical Details
Message-ID:
<3b276482$1_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,9d994d5e9f7d3fc3,start X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-06-13 06:12:10 PST From: "Bill" <shayw@uwgb.edu> Sender: "Bill" <shayw@uwgb.edu> Reply-To: "Bill" <shayw@uwgb.edu> Subject: Sockets and BufferedReader (again) Newsgroups: borland.public.jbuilder.java.language X-User-Info: 24.130.236.85 24.130.236.85 NNTP-Posting-Host: 207.105.83.65 Message-ID: <3b276482$1_1@dnews> Date: 13 Jun 2001 06:02:58 -0700 X-Trace: dnews 992437378 207.105.83.65 (13 Jun 2001 06:02:58 -0700) Lines: 20 Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews