Convert InputStream into Stream given a Charset

后端 未结 1 454
你的背包
你的背包 2020-12-30 21:26

I want to convert an InputStream is into a Stream stream given a Charset cs in such a way that stream consi

相关标签:
1条回答
  • 2020-12-30 21:38

    I think you can try:

    Stream<String> lines = new BufferedReader(new InputStreamReader(is, cs)).lines();
    
    0 讨论(0)
提交回复
热议问题