public class ByteArrayToJsonNodeConverter extends AbstractContentTypeConverter<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
|
convertpublic 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()
ContentTypeConverterpublic Class<com.fasterxml.jackson.databind.JsonNode> targetType()
ContentTypeConverterpublic com.fasterxml.jackson.databind.JsonNode convert(byte[] original)
ContentTypeConverterSerializedObject
instance.original - the value to convertCopyright © 2010-2014. All Rights Reserved.