@Internal @Singleton @Primary public final class JacksonJsonMapper extends java.lang.Object implements ObjectMapper
JsonMapper
interface for Jackson.Constructor and Description |
---|
JacksonJsonMapper(SerdeRegistry registry) |
Modifier and Type | Method and Description |
---|---|
io.micronaut.json.JsonMapper |
cloneWithViewClass(java.lang.Class<?> viewClass) |
org.reactivestreams.Processor<byte[],io.micronaut.json.tree.JsonNode> |
createReactiveParser(java.util.function.Consumer<org.reactivestreams.Processor<byte[],io.micronaut.json.tree.JsonNode>> onSubscribe,
boolean streamArray) |
io.micronaut.json.JsonStreamConfig |
getStreamConfig() |
<T> T |
readValue(byte[] byteArray,
io.micronaut.core.type.Argument<T> type) |
<T> T |
readValue(java.io.InputStream inputStream,
io.micronaut.core.type.Argument<T> type) |
<T> T |
readValueFromTree(io.micronaut.json.tree.JsonNode tree,
io.micronaut.core.type.Argument<T> type) |
void |
updateValueFromTree(java.lang.Object value,
io.micronaut.json.tree.JsonNode tree) |
<T> void |
writeValue(java.io.OutputStream outputStream,
io.micronaut.core.type.Argument<T> type,
T object) |
void |
writeValue(java.io.OutputStream outputStream,
java.lang.Object object) |
<T> byte[] |
writeValueAsBytes(io.micronaut.core.type.Argument<T> type,
T object) |
byte[] |
writeValueAsBytes(java.lang.Object object) |
<T> io.micronaut.json.tree.JsonNode |
writeValueToTree(io.micronaut.core.type.Argument<T> type,
T value) |
io.micronaut.json.tree.JsonNode |
writeValueToTree(java.lang.Object value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cloneWithFeatures, readValue, readValue, readValue, writeValueAsString, writeValueAsString, writeValueAsString
@Inject @Internal public JacksonJsonMapper(SerdeRegistry registry)
public <T> T readValueFromTree(@NonNull io.micronaut.json.tree.JsonNode tree, @NonNull io.micronaut.core.type.Argument<T> type) throws java.io.IOException
readValueFromTree
in interface io.micronaut.json.JsonMapper
java.io.IOException
@NonNull public io.micronaut.json.tree.JsonNode writeValueToTree(@Nullable java.lang.Object value) throws java.io.IOException
writeValueToTree
in interface io.micronaut.json.JsonMapper
java.io.IOException
public <T> io.micronaut.json.tree.JsonNode writeValueToTree(io.micronaut.core.type.Argument<T> type, T value) throws java.io.IOException
writeValueToTree
in interface io.micronaut.json.JsonMapper
java.io.IOException
public <T> T readValue(@NonNull java.io.InputStream inputStream, @NonNull io.micronaut.core.type.Argument<T> type) throws java.io.IOException
readValue
in interface io.micronaut.json.JsonMapper
java.io.IOException
public <T> T readValue(@NonNull byte[] byteArray, @NonNull io.micronaut.core.type.Argument<T> type) throws java.io.IOException
readValue
in interface io.micronaut.json.JsonMapper
java.io.IOException
public void writeValue(@NonNull java.io.OutputStream outputStream, @Nullable java.lang.Object object) throws java.io.IOException
writeValue
in interface io.micronaut.json.JsonMapper
java.io.IOException
public <T> void writeValue(java.io.OutputStream outputStream, io.micronaut.core.type.Argument<T> type, T object) throws java.io.IOException
writeValue
in interface io.micronaut.json.JsonMapper
java.io.IOException
public byte[] writeValueAsBytes(@Nullable java.lang.Object object) throws java.io.IOException
writeValueAsBytes
in interface io.micronaut.json.JsonMapper
java.io.IOException
public <T> byte[] writeValueAsBytes(io.micronaut.core.type.Argument<T> type, T object) throws java.io.IOException
writeValueAsBytes
in interface io.micronaut.json.JsonMapper
java.io.IOException
@NonNull public io.micronaut.json.JsonStreamConfig getStreamConfig()
getStreamConfig
in interface io.micronaut.json.JsonMapper
@NonNull public org.reactivestreams.Processor<byte[],io.micronaut.json.tree.JsonNode> createReactiveParser(java.util.function.Consumer<org.reactivestreams.Processor<byte[],io.micronaut.json.tree.JsonNode>> onSubscribe, boolean streamArray)
createReactiveParser
in interface io.micronaut.json.JsonMapper
@NonNull public io.micronaut.json.JsonMapper cloneWithViewClass(@NonNull java.lang.Class<?> viewClass)
cloneWithViewClass
in interface io.micronaut.json.JsonMapper
public void updateValueFromTree(java.lang.Object value, io.micronaut.json.tree.JsonNode tree) throws java.io.IOException
updateValueFromTree
in interface io.micronaut.json.JsonMapper
java.io.IOException