public class ByteArrayToJsonNodeConverter extends Object implements ContentTypeConverter<byte[],com.fasterxml.jackson.databind.JsonNode>
Constructor and Description |
---|
ByteArrayToJsonNodeConverter(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Initialize the Converter, using given
objectMapper to parse the binary contents |
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JsonNode |
convert(byte[] original)
Converts the given object into another.
|
Class<byte[]> |
expectedSourceType()
The expected type of input data.
|
Class<com.fasterxml.jackson.databind.JsonNode> |
targetType()
The returned type of IntermediateRepresentation
|
public ByteArrayToJsonNodeConverter(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
objectMapper
to parse the binary contentsobjectMapper
- the Jackson ObjectMapper to parse the byte array withpublic Class<byte[]> expectedSourceType()
ContentTypeConverter
expectedSourceType
in interface ContentTypeConverter<byte[],com.fasterxml.jackson.databind.JsonNode>
public Class<com.fasterxml.jackson.databind.JsonNode> targetType()
ContentTypeConverter
targetType
in interface ContentTypeConverter<byte[],com.fasterxml.jackson.databind.JsonNode>
public com.fasterxml.jackson.databind.JsonNode convert(byte[] original)
ContentTypeConverter
SerializedObject
instance.convert
in interface ContentTypeConverter<byte[],com.fasterxml.jackson.databind.JsonNode>
original
- the value to convertCopyright © 2010–2022. All rights reserved.