Class JsonReader
java.lang.Object
de.fraunhofer.iosb.ilt.frostclient.json.deserialize.JsonReader
Allows parsing of STA entities from JSON.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.ObjectMapperparseEntity(EntityType entityType, byte[] value) parseEntity(EntityType entityType, Reader value) parseEntity(EntityType entityType, String value) parseEntitySet(EntityType entityType, Reader value) parseEntitySet(EntityType entityType, String value) <T> TparseObject(com.fasterxml.jackson.core.type.TypeReference<T> typeReference, Reader value) <T> TparseObject(com.fasterxml.jackson.core.type.TypeReference<T> typeReference, String value) <T> TparseObject(Class<T> clazz, Reader value) <T> TparseObject(Class<T> clazz, String value)
-
Constructor Details
-
JsonReader
Create a JsonReader.- Parameters:
modelRegistry- the model registry to create the json reader for.
-
-
Method Details
-
getMapper
public com.fasterxml.jackson.databind.ObjectMapper getMapper() -
parseEntity
- Throws:
IOException
-
parseEntity
- Throws:
IOException
-
parseEntity
- Throws:
IOException
-
parseEntitySet
- Throws:
IOException
-
parseEntitySet
- Throws:
IOException
-
parseObject
- Throws:
IOException
-
parseObject
- Throws:
IOException
-
parseObject
public <T> T parseObject(com.fasterxml.jackson.core.type.TypeReference<T> typeReference, String value) throws IOException - Throws:
IOException
-
parseObject
public <T> T parseObject(com.fasterxml.jackson.core.type.TypeReference<T> typeReference, Reader value) throws IOException - Throws:
IOException
-