Here are four essentially identical questions:
- Reset buffer with BufferedReader in Java?
- How do I read a file again using buffered reader in Java?
- Java BufferedReader back to the top of a text file?
- How to return to the beginning of a Bufferedreader?
I'd like to mark three of them as a duplicate of one but can't decide on the master question.
- 1:
- Pro: Has the best direct answer to accomplish the specific goal in the question.
- Con: Does not suggest alternative.
- 2:
- Not up for consideration.
- 3:
- Pro: The oldest.
- Pro: Sage advice from Ryan P and Jon Skeet, presenting alternatives.
- Con: Doesn't have a direct answer to the specific question (which could be seen as a good thing I suppose, unless somebody is actually trying to find out how to reset a
BufferedReader
for some good reason and is not interested in an alternative).
- 4:
- Not up for consideration. I do like my answer ;) but really it contains no new information not scattered throughout the other three.
I think 1 and 3 are the top contenders. All of these are pretty specific to file-based sources, which is a general shortcoming, but not much can be done about that; I could add a new answer to whatever the master question ends up being along those lines, I suppose.
Another option, if a mod wants to spend some time on it, could be to merge 1 into 3 then mark 2 and 4 as a duplicate of 3. This would give the merged question a good selection of both direct answers and alternatives.
What do you guys think?