How is the -1 returned by InputStream methods when reaching the end of the stream distinguished from a -1 in the stream data?
How is the -1 returned by InputStream methods when reaching the end of the stream distinguished from a -1 in the stream data?