Package org.bson.codecs
Class DecoderContext
java.lang.Object
org.bson.codecs.DecoderContext
The context for decoding values to BSON.
- Since:
- 3.0
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A builder forDecoderContext
instances. -
Method Summary
Modifier and TypeMethodDescriptionstatic 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
-
Method Details
-
hasCheckedDiscriminator
public boolean hasCheckedDiscriminator()- Returns:
- true if the discriminator has been checked
-
builder
Create a builder.- Returns:
- the builder
-
decodeWithChildContext
Creates a child context and then deserializes using the reader.- Type Parameters:
T
- the type of the decoder- Parameters:
decoder
- the decoder to decode withreader
- the reader to decode to- Returns:
- the decoded value
- Since:
- 3.5
-