public class LambdaJsonBinder extends java.lang.Object implements LambdaDataBinder
Constructor and Description |
---|
LambdaJsonBinder()
Constructs a Lambda Json binder.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
deserialize(byte[] content,
java.lang.Class<T> clazz)
Converts an encoded byte array into a POJO.
|
byte[] |
serialize(java.lang.Object object)
Serializes an object into encoded byte array.
|
public <T> T deserialize(byte[] content, java.lang.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(java.lang.Object object)
LambdaDataBinder
serialize
in interface LambdaDataBinder
object
- object to be serializedCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.