InputStreamReader buffering issue

后端 未结 6 884
感情败类
感情败类 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 22:04

    Why don't you use 2 InputStreams? One for reading the header and another for the body.

    The second InputStream should skip the header bytes.

提交回复
热议问题