public class JacksonObjectSerialDeserial extends Object implements IObjectSerialDeserial<String>
| Constructor and Description |
|---|
JacksonObjectSerialDeserial() |
JacksonObjectSerialDeserial(com.fasterxml.jackson.databind.ObjectMapper objMapper) |
| Modifier and Type | Method and Description |
|---|---|
<E> E |
deserializeObject(String source,
Class<E> targetClass,
String mimeType)
Extract an object instance from a given source object.
|
com.fasterxml.jackson.databind.ObjectMapper |
getObjMapper() |
String |
serializeObject(Object target,
String mimeType)
Returns a given representation of the target object.
|
public JacksonObjectSerialDeserial(com.fasterxml.jackson.databind.ObjectMapper objMapper)
public JacksonObjectSerialDeserial()
public String serializeObject(Object target, String mimeType)
IObjectSerialDeserialserializeObject in interface IObjectSerialDeserial<String>mimeType - the target MIME type.public <E> E deserializeObject(String source, Class<E> targetClass, String mimeType)
IObjectSerialDeserialdeserializeObject in interface IObjectSerialDeserial<String>source - the source object.targetClass - the type of the returned object.mimeType - the target MIME type.public com.fasterxml.jackson.databind.ObjectMapper getObjMapper()
Copyright © 2015. All rights reserved.