public class LambdaJsonBinder extends Object implements LambdaDataBinder
Constructor and Description |
---|
LambdaJsonBinder()
Constructs a Lambda Json binder.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
deserialize(byte[] content,
Class<T> clazz)
Converts an encoded byte array into a POJO.
|
byte[] |
serialize(Object object)
Serializes an object into encoded byte array.
|
public <T> T deserialize(byte[] content, Class<T> clazz)
LambdaDataBinder
deserialize
in interface LambdaDataBinder
T
- the type of the classcontent
- an encoded content in bytesclazz
- class to be deserialized intopublic byte[] serialize(Object object)
LambdaDataBinder
serialize
in interface LambdaDataBinder
object
- object to be serializedCopyright © 2017. All rights reserved.