Package com.esri.core.geometry
Class JsonParserReader
- java.lang.Object
-
- com.esri.core.geometry.JsonParserReader
-
- All Implemented Interfaces:
JsonReader
public class JsonParserReader extends java.lang.Object implements JsonReader
A throw in JsonReader built around the Jackson JsonParser.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.esri.core.geometry.JsonReader
JsonReader.Token
-
-
Field Summary
Fields Modifier and Type Field Description private com.fasterxml.jackson.core.JsonParser
m_jsonParser
-
Constructor Summary
Constructors Constructor Description JsonParserReader(com.fasterxml.jackson.core.JsonParser jsonParser)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JsonReader
createFromString(java.lang.String str)
Creates a JsonReader for the string.static JsonReader
createFromStringNNT(java.lang.String str)
Creates a JsonReader for the string.boolean
currentBooleanValue()
double
currentDoubleValue()
int
currentIntValue()
java.lang.String
currentString()
JsonReader.Token
currentToken()
private static JsonReader.Token
mapToken(com.fasterxml.jackson.core.JsonToken token)
JsonReader.Token
nextToken()
void
skipChildren()
-
-
-
Method Detail
-
createFromString
public static JsonReader createFromString(java.lang.String str)
Creates a JsonReader for the string. The nextToken is called by this method.
-
createFromStringNNT
public static JsonReader createFromStringNNT(java.lang.String str)
Creates a JsonReader for the string. The nextToken is not called by this method.
-
mapToken
private static JsonReader.Token mapToken(com.fasterxml.jackson.core.JsonToken token)
-
nextToken
public JsonReader.Token nextToken() throws JsonGeometryException
- Specified by:
nextToken
in interfaceJsonReader
- Throws:
JsonGeometryException
-
currentToken
public JsonReader.Token currentToken() throws JsonGeometryException
- Specified by:
currentToken
in interfaceJsonReader
- Throws:
JsonGeometryException
-
skipChildren
public void skipChildren() throws JsonGeometryException
- Specified by:
skipChildren
in interfaceJsonReader
- Throws:
JsonGeometryException
-
currentString
public java.lang.String currentString() throws JsonGeometryException
- Specified by:
currentString
in interfaceJsonReader
- Throws:
JsonGeometryException
-
currentDoubleValue
public double currentDoubleValue() throws JsonGeometryException
- Specified by:
currentDoubleValue
in interfaceJsonReader
- Throws:
JsonGeometryException
-
currentIntValue
public int currentIntValue() throws JsonGeometryException
- Specified by:
currentIntValue
in interfaceJsonReader
- Throws:
JsonGeometryException
-
currentBooleanValue
public boolean currentBooleanValue()
- Specified by:
currentBooleanValue
in interfaceJsonReader
-
-