Skip to content

Latest commit

 

History

History
10 lines (6 loc) · 431 Bytes

README.md

File metadata and controls

10 lines (6 loc) · 431 Bytes

IOStream

Java 8 Stream from IO channels

Example of tools used to create a Stream from IO channels that don't have a stream() method.

java.io.BufferedReader offers a Stream<String> stream() method, but here is an example showing how to do it with CSVReader from OpenCSV.

Everything relies on implementing a specific java.util.Spliterator so that java.util.stream.StreamSupport can create a Stream for us.