InputStreamReader buffering issue

后端 未结 6 894
感情败类
感情败类 2021-02-05 21:18

I am reading data from a file that has, unfortunately, two types of character encoding.

There is a header and a body. The header is always in ASCII and defines the char

6条回答
  •  说谎
    说谎 (楼主)
    2021-02-05 21:39

    I suggest rereading the stream from the start with a new InputStreamReader. Perhaps assume that InputStream.mark is supported.

提交回复
热议问题