@Singleton public class JsonStreamMapper extends java.lang.Object implements ObjectMapper
JsonMapper
interface for JSON-P.Constructor and Description |
---|
JsonStreamMapper(SerdeRegistry registry) |
JsonStreamMapper(SerdeRegistry registry,
java.lang.Class<?> view) |
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) |
<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 public JsonStreamMapper(SerdeRegistry registry)
public JsonStreamMapper(SerdeRegistry registry, java.lang.Class<?> view)
public io.micronaut.json.JsonMapper cloneWithViewClass(java.lang.Class<?> viewClass)
cloneWithViewClass
in interface io.micronaut.json.JsonMapper
public <T> T readValueFromTree(io.micronaut.json.tree.JsonNode tree, io.micronaut.core.type.Argument<T> type) throws java.io.IOException
readValueFromTree
in interface io.micronaut.json.JsonMapper
java.io.IOException
public <T> T readValue(java.io.InputStream inputStream, 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(byte[] byteArray, io.micronaut.core.type.Argument<T> type) throws java.io.IOException
readValue
in interface io.micronaut.json.JsonMapper
java.io.IOException
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
public io.micronaut.json.tree.JsonNode writeValueToTree(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 void writeValue(java.io.OutputStream outputStream, 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(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
public io.micronaut.json.JsonStreamConfig getStreamConfig()
getStreamConfig
in interface io.micronaut.json.JsonMapper