io.ebeaninternal.json.EJsonReader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ebean Show documentation
Show all versions of ebean Show documentation
composite of common runtime dependencies for all platforms
package io.ebeaninternal.json;
import com.fasterxml.jackson.core.JsonFactory;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonToken;
import java.io.IOException;
import java.io.Reader;
import java.io.StringReader;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.NoSuchElementException;
class EJsonReader {
static final JsonFactory json = new JsonFactory();
@SuppressWarnings("unchecked")
static Map parseObject(String json, boolean modifyAware) throws IOException {
return (Map) parse(json, modifyAware);
}
@SuppressWarnings("unchecked")
static Map parseObject(String json) throws IOException {
return (Map) parse(json);
}
@SuppressWarnings("unchecked")
static Map parseObject(Reader reader) throws IOException {
return (Map) parse(reader);
}
@SuppressWarnings("unchecked")
static Map parseObject(Reader reader, boolean modifyAware) throws IOException {
return (Map) parse(reader, modifyAware);
}
@SuppressWarnings("unchecked")
static Map parseObject(JsonParser parser) throws IOException {
return (Map) parse(parser);
}
@SuppressWarnings("unchecked")
static Map parseObject(JsonParser parser, JsonToken token) throws IOException {
return (Map) parse(parser, token, false);
}
@SuppressWarnings("unchecked")
static List parseList(String json, boolean modifyAware) throws IOException {
return (List) parse(json, modifyAware);
}
@SuppressWarnings("unchecked")
static List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy