osglworks / java-tool

Some simple common Java utilities
Apache License 2.0
52 stars 18 forks source link

Add `toLines(int limit)` API to `ReadStage` #170

Closed greenlaw110 closed 6 years ago

greenlaw110 commented 6 years ago

This allows app developer to fetch first N lines from stream. Could be good to allow developer to create app that needs to inspect on large files (e.g. a huge csv file) without reading all lines into memory