View Single Post
  #1 (permalink)  
Old 07-18-2007, 04:14 PM
adoorsarath adoorsarath is offline
Member
 
Join Date: Jul 2007
Posts: 2
adoorsarath is on a distinguished road
Un expected behaviour when reading from inputstream
sir,

we all know that when we read from an inputstream using read()

method of the InputStream class,it should return -1 when end of the

stream reaches.

In my case when I try to read from the InputStream of a serial port,it

blocks instead of returning -1 (when reaches end of stream) and returns the

data when it available.

Do any one know the answer,please help me.

thanks in advance,

Adoorsarath
Reply With Quote
Sponsored Links