| Constructor and Description |
|---|
JsonCodec(java.lang.Class<IN> inputType)
Creates a new
JsonCodec that will create instances of inputType when
decoding. |
JsonCodec(java.lang.Class<IN> inputType,
com.fasterxml.jackson.databind.Module customModule)
Creates a new
JsonCodec that will create instances of inputType when
decoding. |
| Modifier and Type | Method and Description |
|---|---|
Function<Buffer,IN> |
decoder(Consumer<IN> next)
Provide the caller with a decoder to turn a source object into an instance of the input
type.
|
Function<OUT,Buffer> |
encoder()
Provide the caller with an encoder to turn an output object into an instance of the source
type.
|
public JsonCodec(java.lang.Class<IN> inputType)
JsonCodec that will create instances of inputType when
decoding.inputType - The type to create when decoding.public JsonCodec(java.lang.Class<IN> inputType, com.fasterxml.jackson.databind.Module customModule)
JsonCodec that will create instances of inputType when
decoding. The customModule will be registered with the underlying ObjectMapper.inputType - The type to create when decoding.customModule - The module to register with the underlying ObjectMapper