Package org.chenile.utils.stream
Class JsonReader<T>
java.lang.Object
org.chenile.utils.stream.JsonReader<T>
- All Implemented Interfaces:
Iterable<T>
Read a JSON file. Treat the file as a giant array of multiple records.
Parse it and return an iterator
- Author:
- Raja Shankar Kolluru
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJsonReader
(InputStream inputStream, Class<?> recordClass) JsonReader
(Path path, Class<T> recordClass) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator