Package com.floragunn.searchsupport.json
Class BasicJsonReader
- java.lang.Object
-
- com.floragunn.searchsupport.json.BasicJsonReader
-
public class BasicJsonReader extends Object
A lightweight, reflection-less way of parsing JSON. Parses JSON to these basic Java types: - List - Map - String - Boolean - Number
-
-
Constructor Summary
Constructors Constructor Description BasicJsonReader(com.fasterxml.jackson.core.JsonParser parser)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectread()static Objectread(com.fasterxml.jackson.core.JsonParser parser)static Objectread(InputStream in)static Objectread(Reader in)static Objectread(String string)static Objectread(org.elasticsearch.common.bytes.BytesReference data, org.elasticsearch.common.xcontent.XContentType contentType)static Map<String,Object>readObject(InputStream in)static Map<String,Object>readObject(String string)static Map<String,Object>readObject(org.elasticsearch.common.bytes.BytesReference data, org.elasticsearch.common.xcontent.XContentType contentType)
-
-
-
Method Detail
-
read
public static Object read(com.fasterxml.jackson.core.JsonParser parser) throws com.fasterxml.jackson.core.JsonProcessingException, IOException
- Throws:
com.fasterxml.jackson.core.JsonProcessingExceptionIOException
-
read
public static Object read(InputStream in) throws com.fasterxml.jackson.core.JsonProcessingException, IOException
- Throws:
com.fasterxml.jackson.core.JsonProcessingExceptionIOException
-
read
public static Object read(Reader in) throws com.fasterxml.jackson.core.JsonProcessingException, IOException
- Throws:
com.fasterxml.jackson.core.JsonProcessingExceptionIOException
-
read
public static Object read(String string) throws com.fasterxml.jackson.core.JsonProcessingException
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
read
public static Object read(org.elasticsearch.common.bytes.BytesReference data, org.elasticsearch.common.xcontent.XContentType contentType) throws com.fasterxml.jackson.core.JsonProcessingException
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
readObject
public static Map<String,Object> readObject(InputStream in) throws com.fasterxml.jackson.core.JsonProcessingException, IOException
- Throws:
com.fasterxml.jackson.core.JsonProcessingExceptionIOException
-
readObject
public static Map<String,Object> readObject(String string) throws com.fasterxml.jackson.core.JsonProcessingException, IOException
- Throws:
com.fasterxml.jackson.core.JsonProcessingExceptionIOException
-
readObject
public static Map<String,Object> readObject(org.elasticsearch.common.bytes.BytesReference data, org.elasticsearch.common.xcontent.XContentType contentType) throws com.fasterxml.jackson.core.JsonProcessingException
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
read
public Object read() throws IOException, com.fasterxml.jackson.core.JsonProcessingException
- Throws:
IOExceptioncom.fasterxml.jackson.core.JsonProcessingException
-
-