public final class DecoderContext
extends java.lang.Object
Decoder
Modifier and Type | Class and Description |
---|---|
static class |
DecoderContext.Builder
A builder for
DecoderContext instances. |
Modifier and Type | Field and Description |
---|---|
private boolean |
checkedDiscriminator |
private static DecoderContext |
DEFAULT_CONTEXT |
Modifier | Constructor and Description |
---|---|
private |
DecoderContext(DecoderContext.Builder builder) |
Modifier and Type | Method and Description |
---|---|
static DecoderContext.Builder |
builder()
Create a builder.
|
<T> T |
decodeWithChildContext(Decoder<T> decoder,
BsonReader reader)
Creates a child context and then deserializes using the reader.
|
boolean |
hasCheckedDiscriminator() |
private static final DecoderContext DEFAULT_CONTEXT
private final boolean checkedDiscriminator
private DecoderContext(DecoderContext.Builder builder)
public boolean hasCheckedDiscriminator()
public static DecoderContext.Builder builder()
public <T> T decodeWithChildContext(Decoder<T> decoder, BsonReader reader)
T
- the type of the decoderdecoder
- the decoder to decode withreader
- the reader to decode to