public class JsonNodeToByteArrayConverter extends Object implements ContentTypeConverter<com.fasterxml.jackson.databind.JsonNode,byte[]>
| Constructor and Description | 
|---|
JsonNodeToByteArrayConverter(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Initialize the converter, using given  
objectMapper to convert the JSonNode into bytes. | 
| Modifier and Type | Method and Description | 
|---|---|
byte[] | 
convert(com.fasterxml.jackson.databind.JsonNode original)
Converts the given object into another. 
 | 
Class<com.fasterxml.jackson.databind.JsonNode> | 
expectedSourceType()
The expected type of input data. 
 | 
Class<byte[]> | 
targetType()
The returned type of IntermediateRepresentation 
 | 
public JsonNodeToByteArrayConverter(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
objectMapper to convert the JSonNode into bytes. Typically,
 this would be the objectMapper used by the Serializer that serializes objects into JsonNode.objectMapper - The objectMapper to serialize the JsonNode with.public Class<com.fasterxml.jackson.databind.JsonNode> expectedSourceType()
ContentTypeConverterexpectedSourceType in interface ContentTypeConverter<com.fasterxml.jackson.databind.JsonNode,byte[]>public Class<byte[]> targetType()
ContentTypeConvertertargetType in interface ContentTypeConverter<com.fasterxml.jackson.databind.JsonNode,byte[]>public byte[] convert(com.fasterxml.jackson.databind.JsonNode original)
ContentTypeConverterSerializedObject
 instance.convert in interface ContentTypeConverter<com.fasterxml.jackson.databind.JsonNode,byte[]>original - the value to convertCopyright © 2010–2018. All rights reserved.