Package org.bson.codecs
Class BooleanCodec
- java.lang.Object
 - 
- org.bson.codecs.BooleanCodec
 
 
- 
- 
Constructor Summary
Constructors Constructor Description BooleanCodec() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Booleandecode(BsonReader reader, DecoderContext decoderContext)Decodes a BSON value from the given reader into an instance of the type parameterT.voidencode(BsonWriter writer, java.lang.Boolean value, EncoderContext encoderContext)Encode an instance of the type parameterTinto a BSON value.java.lang.Class<java.lang.Boolean>getEncoderClass()Returns the Class instance that this encodes. 
 - 
 
- 
- 
Method Detail
- 
encode
public void encode(BsonWriter writer, java.lang.Boolean value, EncoderContext encoderContext)
Description copied from interface:EncoderEncode an instance of the type parameterTinto a BSON value. 
- 
decode
public java.lang.Boolean decode(BsonReader reader, DecoderContext decoderContext)
Description copied from interface:DecoderDecodes a BSON value from the given reader into an instance of the type parameterT. 
- 
getEncoderClass
public java.lang.Class<java.lang.Boolean> getEncoderClass()
Description copied from interface:EncoderReturns the Class instance that this encodes. This is necessary because Java does not reify generic types.- Specified by:
 getEncoderClassin interfaceEncoder<java.lang.Boolean>- Returns:
 - the Class instance that this encodes.
 
 
 - 
 
 -