public final class JacksonProcessing extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isSupported(MediaType type)
Check whether the type is supported by Jackson.
|
static Reader<Object> |
reader(ObjectMapper objectMapper)
|
static Function<Object,Flow.Publisher<DataChunk>> |
writer(ObjectMapper objectMapper)
Returns a function (writer) converting
Objects to Publishers
of DataChunks by using the supplied ObjectMapper. |
public static boolean isSupported(MediaType type)
type - media type to checkpublic static Reader<Object> reader(ObjectMapper objectMapper)
Reader that converts a Publisher of ByteBuffers to
a Java object.
This method is intended for the derivation of other, more specific readers.
objectMapper - the ObjectMapper to use; must not be nullRuntimeException in case of I/O errorNullPointerException - if objectMapper is nullpublic static Function<Object,Flow.Publisher<DataChunk>> writer(ObjectMapper objectMapper)
Objects to Publishers
of DataChunks by using the supplied ObjectMapper.objectMapper - the ObjectMapper to use; must not be nullNullPointerException - if objectMapper is nullCopyright © 2018–2019 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.