Package org.bson.codecs
Class DecoderContext
- java.lang.Object
-
- org.bson.codecs.DecoderContext
-
@Deprecated(since="2022-10-31") public final class DecoderContext extends java.lang.Object
Deprecated.Usage of this API is not supported in AEM as a Cloud Service.The context for decoding values to BSON.- Since:
- 3.0
- See Also:
Decoder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DecoderContext.Builder
Deprecated.Usage of this API is not supported in AEM as a Cloud Service.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static DecoderContext.Builder
builder()
Deprecated.Create a builder.<T> T
decodeWithChildContext(Decoder<T> decoder, BsonReader reader)
Deprecated.Creates a child context and then deserializes using the reader.boolean
hasCheckedDiscriminator()
Deprecated.
-
-
-
Method Detail
-
hasCheckedDiscriminator
public boolean hasCheckedDiscriminator()
Deprecated.- Returns:
- true if the discriminator has been checked
-
builder
public static DecoderContext.Builder builder()
Deprecated.Create a builder.- Returns:
- the builder
-
decodeWithChildContext
public <T> T decodeWithChildContext(Decoder<T> decoder, BsonReader reader)
Deprecated.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
-
-