tlaukkan / zigbee4java

Zigbee API for Java provides simple Java interface to ZigBee network.
Apache License 2.0
144 stars 68 forks source link

Change end of stream check to -1 #36

Closed cdjackson closed 9 years ago

cdjackson commented 9 years ago

The doc for inputStream.read() states -:

The value byte is returned as an int in the range 0 to 255. If no byte is available because the end of the stream has been reached, the value -1 is returned.