public final class EncoderContext
extends java.lang.Object
Encoder
Modifier and Type | Class and Description |
---|---|
static class |
EncoderContext.Builder
A builder for
EncoderContext instances. |
Modifier and Type | Method and Description |
---|---|
static EncoderContext.Builder |
builder()
Create a builder.
|
<T> void |
encodeWithChildContext(Encoder<T> encoder,
BsonWriter writer,
T value)
Creates a child context based on this and serializes the value with it to the writer.
|
EncoderContext |
getChildContext()
Gets a child context based on this.
|
boolean |
isEncodingCollectibleDocument()
Returns true if the the value to be encoded is a document that will be put in a MongoDB collection.
|
public static EncoderContext.Builder builder()
public boolean isEncodingCollectibleDocument()
public <T> void encodeWithChildContext(Encoder<T> encoder, BsonWriter writer, T value)
T
- the type of the valueencoder
- the encoder to encode value withwriter
- the writer to encode tovalue
- the value to encodepublic EncoderContext getChildContext()
Copyright © 2010 - 2020 Adobe. All Rights Reserved