de.undercouch.bson4jackson.deserializers
Class BsonDeserializer<T>

java.lang.Object
  extended by com.fasterxml.jackson.databind.JsonDeserializer<T>
      extended by de.undercouch.bson4jackson.deserializers.BsonDeserializer<T>
Direct Known Subclasses:
BsonCalendarDeserializer, BsonDateDeserializer

public abstract class BsonDeserializer<T>
extends com.fasterxml.jackson.databind.JsonDeserializer<T>

Base class for BSON deserializers

Since:
2.3.2

Nested Class Summary
 
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonDeserializer
com.fasterxml.jackson.databind.JsonDeserializer.None
 
Constructor Summary
BsonDeserializer()
           
 
Method Summary
abstract  T deserialize(BsonParser bp, com.fasterxml.jackson.databind.DeserializationContext ctxt)
          Deserialize an object using the given BsonParser
 T deserialize(com.fasterxml.jackson.core.JsonParser jsonParser, com.fasterxml.jackson.databind.DeserializationContext ctxt)
           
 
Methods inherited from class com.fasterxml.jackson.databind.JsonDeserializer
deserialize, deserializeWithType, findBackReference, getDelegatee, getEmptyValue, getKnownPropertyNames, getNullValue, getObjectIdReader, handledType, isCachable, replaceDelegatee, unwrappingDeserializer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BsonDeserializer

public BsonDeserializer()
Method Detail

deserialize

public T deserialize(com.fasterxml.jackson.core.JsonParser jsonParser,
                     com.fasterxml.jackson.databind.DeserializationContext ctxt)
              throws java.io.IOException,
                     com.fasterxml.jackson.core.JsonProcessingException
Specified by:
deserialize in class com.fasterxml.jackson.databind.JsonDeserializer<T>
Throws:
java.io.IOException
com.fasterxml.jackson.core.JsonProcessingException

deserialize

public abstract T deserialize(BsonParser bp,
                              com.fasterxml.jackson.databind.DeserializationContext ctxt)
                       throws java.io.IOException,
                              com.fasterxml.jackson.core.JsonProcessingException
Deserialize an object using the given BsonParser

Parameters:
bp - the BsonParser read from
ctxt - context that can be used to access information about this deserialization activity
Returns:
the deserialized object
Throws:
java.io.IOException
com.fasterxml.jackson.core.JsonProcessingException