@Immutable public class JsonCodec extends Object implements Codec
ObjectMapper.| Constructor and Description |
|---|
JsonCodec(com.fasterxml.jackson.databind.ObjectMapper mapper)
Constructs a new JSON codec.
|
| Modifier and Type | Method and Description |
|---|---|
String |
contentTransferEncoding()
The implementation in the class
JsonCodec
returns "8bit". |
String |
contentType()
The implementation in the class
JsonCodec
returns "application/json". |
<T> T |
decode(Source source,
Type expected) |
void |
encode(Sink sink,
Object obj) |
public JsonCodec(com.fasterxml.jackson.databind.ObjectMapper mapper)
mapper - the object mapper.public String contentTransferEncoding()
The implementation in the class JsonCodec
returns "8bit".
contentTransferEncoding in interface Codecpublic String contentType()
The implementation in the class JsonCodec
returns "application/json".
contentType in interface CodecCopyright © 2005–2017 Schlichtherle IT Services. All rights reserved.