|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.axonframework.serializer.AbstractContentTypeConverter<byte[],com.fasterxml.jackson.databind.JsonNode> org.axonframework.serializer.json.ByteArrayToJsonNodeConverter
public class ByteArrayToJsonNodeConverter
ContentTypeConverter implementation that converts byte[] containing UTF8 encoded JSON string to a Jackson JsonNode.
Constructor Summary | |
---|---|
ByteArrayToJsonNodeConverter(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Initialize the Converter, using given objectMapper to parse the binary contents |
Method Summary | |
---|---|
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 |
Methods inherited from class org.axonframework.serializer.AbstractContentTypeConverter |
---|
convert |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ByteArrayToJsonNodeConverter(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
objectMapper
to parse the binary contents
objectMapper
- the Jackson ObjectMapper to parse the byte array withMethod Detail |
---|
public Class<byte[]> expectedSourceType()
ContentTypeConverter
public Class<com.fasterxml.jackson.databind.JsonNode> targetType()
ContentTypeConverter
public com.fasterxml.jackson.databind.JsonNode convert(byte[] original)
ContentTypeConverter
SerializedObject
instance.
original
- the value to convert
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |