io.castled.utils.JsonStreamParser Maven / Gradle / Ivy
package io.castled.utils;
import com.google.inject.Singleton;
import io.castled.exceptions.CastledRuntimeException;
import io.castled.functionalinterfaces.ThrowingConsumer;
import lombok.extern.slf4j.Slf4j;
import javax.json.Json;
import javax.json.JsonObject;
import javax.json.stream.JsonParser;
import javax.json.stream.JsonParsingException;
import java.io.InputStream;
import java.util.Map;
@Slf4j
@Singleton
public class JsonStreamParser {
public void parseJsonStream(InputStream inputStream, ThrowingConsumer