Package org.meeuw.json
Class JsonIterator
- java.lang.Object
-
- org.meeuw.json.JsonIterator
-
- All Implemented Interfaces:
Iterator<ParseEvent>
public class JsonIterator extends Object implements Iterator<ParseEvent>
Represents a json object as an iterator ofParseEvents.- Since:
- 0.4
- Author:
- Michiel Meeuwissen
-
-
Constructor Summary
Constructors Constructor Description JsonIterator(com.fasterxml.jackson.core.JsonParser jp)JsonIterator(com.fasterxml.jackson.core.JsonParser jp, Predicate<Path> needsKeyCollection, Predicate<Path> needsJsonCollection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfindNext()booleanhasNext()ParseEventnext()voidremove()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Method Detail
-
next
public ParseEvent next()
- Specified by:
nextin interfaceIterator<ParseEvent>
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfaceIterator<ParseEvent>
-
remove
public void remove()
- Specified by:
removein interfaceIterator<ParseEvent>
-
findNext
protected void findNext()
-
-