In Java 11 BufferedReader documentation I have found following sentence:
Programs that use DataInputStreams for textual input can be localized by replacing each DataInputStream with an appropriate BufferedReader.
I cannot find any explanation how it can be done - what would be an appropriate buffered reader in this context?
DataInputStream.readLine
and found that it doesn't convert bytes to characters properly. "Localised" here could just mean "handles Unicode properly". I don't think the word "appropriate" is that important here. It just refers to a buffered reader that reads from theDataInputStream
– Lavellelaven