@Internal public abstract class AbstractBsonMapper extends java.lang.Object implements ObjectMapper
Modifier and Type | Field and Description |
---|---|
protected Deserializer.DecoderContext |
decoderContext |
protected Serializer.EncoderContext |
encoderContext |
protected SerdeRegistry |
registry |
protected java.lang.Class<?> |
view |
Modifier | Constructor and Description |
---|---|
|
AbstractBsonMapper(SerdeRegistry registry) |
protected |
AbstractBsonMapper(SerdeRegistry registry,
java.lang.Class<?> view) |
Modifier and Type | Method and Description |
---|---|
protected abstract org.bson.BsonReader |
createBsonReader(java.nio.ByteBuffer byteBuffer) |
protected abstract org.bson.AbstractBsonWriter |
createBsonWriter(java.io.OutputStream bsonOutput) |
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
protected final SerdeRegistry registry
protected final java.lang.Class<?> view
protected Serializer.EncoderContext encoderContext
protected Deserializer.DecoderContext decoderContext
public AbstractBsonMapper(SerdeRegistry registry)
protected AbstractBsonMapper(SerdeRegistry registry, java.lang.Class<?> view)
protected abstract org.bson.BsonReader createBsonReader(java.nio.ByteBuffer byteBuffer)
protected abstract org.bson.AbstractBsonWriter createBsonWriter(java.io.OutputStream bsonOutput) throws java.io.IOException
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> 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 <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 <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 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 byte[] writeValueAsBytes(java.lang.Object 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