org.allenai.common
Creates an Iterator from an InputStream. The InputStream is automatically closed once the Iterator has been fully consumed. Example:
StreamClosingIterator(new FileInputStream("foo.txt"))(Source.fromInputStream(_).getLines())
Creates an Iterator from an InputStream. The InputStream is automatically closed once the Iterator has been fully consumed. Example: