I want to convert an InputStream is into a Stream stream given a Charset cs in such a way that stream consi
InputStream is
Stream stream
Charset cs
stream
I think you can try:
Stream<String> lines = new BufferedReader(new InputStreamReader(is, cs)).lines();