Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Lamberta Schmidt   on May 08 In Java Category.

  
Question Answered By: Elaine Stevens   on May 08

As I understood you are using J2SE on server side and MIDP on
client, correct me if I miss. When you use the BufferedReader to
reading socket  stream you can read text data  from client  through
method .readLine() This method returns data from current position
in stream to nearest \n character. If stream data has no such
character reader will wait for this from stream. So your problem
can be in that client does not send  line-termination characters.
Also you can check reader for stream is ready to be read by ready()
method.

Share: