Class DecoderContext


  • public final class DecoderContext
    extends Object
    The context for decoding values to BSON.
    Since:
    3.0
    See Also:
    Decoder
    • Method Detail

      • hasCheckedDiscriminator

        public boolean hasCheckedDiscriminator()
        Returns:
        true if the discriminator has been checked
      • decodeWithChildContext

        public <T> T decodeWithChildContext​(Decoder<T> decoder,
                                            BsonReader reader)
        Creates a child context and then deserializes using the reader.
        Type Parameters:
        T - the type of the decoder
        Parameters:
        decoder - the decoder to decode with
        reader - the reader to decode to
        Returns:
        the decoded value
        Since:
        3.5