How to determine the exact state of a BufferedReader?

后端 未结 8 1496
慢半拍i
慢半拍i 2020-12-17 00:21

I have a BufferedReader (generated by new BufferedReader(new InputStreamReader(process.getInputStream()))). I\'m quite new to the concept of a

8条回答
  •  囚心锁ツ
    2020-12-17 00:57

    Have you confirmed by experiment your assertion that ready() will return false even if the underlying stream is at end of file? Because I would not expect that assertion to be correct (although I haven't done the experiment).

提交回复
热议问题