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
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,