Skip to main content

[json-processing-spec users] Thoughts on JsonParser implementing Iterable

  • From: Jörn Horstmann < >
  • To:
  • Subject: [json-processing-spec users] Thoughts on JsonParser implementing Iterable
  • Date: Sun, 29 Apr 2012 17:38:08 +0200

JsonParser should probably implement Iterator instead of Iterable. Iterable usually implies that the sequence of Events can be iterated multiple times, which is not possible when parsing from a Reader or Inputstream.

While Iterable allows the usage of the enhanced for loop, I think for most use cases an explicit iterator is needed anyway.

Regards,
  Jörn Horstmann


[json-processing-spec users] Thoughts on JsonParser implementing Iterable

Jörn Horstmann 04/30/2012
 
 
Close
loading
Please Confirm
Close