Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
经过更多的谷歌搜索后,我找到了Jon Skeet 的答案,并将其更改DataInputStream为一个包装在 an 中的 InputStreamInputStreamReader 和一个在BufferedReader. 然后我可以使用readLine()并且我得到正确的字符。
DataInputStream
InputStreamReader
BufferedReader
readLine()