fr.adbonnin.cz2128.json.iterator.SkipChildrenArrayIterator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cz2128 Show documentation
Show all versions of cz2128 Show documentation
Repository library based on FasterXML / Jackson.
The newest version!
package fr.adbonnin.cz2128.json.iterator;
import com.fasterxml.jackson.core.JsonParser;
import fr.adbonnin.cz2128.json.JsonException;
import java.io.IOException;
import java.util.Iterator;
public class SkipChildrenArrayIterator implements Iterator {
private final ArrayIterator iterator;
public SkipChildrenArrayIterator(JsonParser parser) {
this.iterator = new ArrayIterator(parser);
}
@Override
public boolean hasNext() {
return iterator.hasNext();
}
@Override
public Void next() {
try {
iterator.next().skipChildren();
return null;
}
catch (IOException e) {
throw new JsonException(e);
}
}
@Override
public void remove() {
iterator.remove();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy