Class BsonEncoder

java.lang.Object
de.bwaldvogel.mongo.wire.bson.BsonEncoder

public class BsonEncoder
extends java.lang.Object
  • Method Summary

    Modifier and Type Method Description
    static byte determineType​(java.lang.Object value)  
    static void encodeDocument​(java.util.Map<java.lang.String,​?> document, io.netty.buffer.ByteBuf out)  
    static void encodeValue​(byte type, java.lang.Object value, io.netty.buffer.ByteBuf buffer)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • encodeDocument

      public static void encodeDocument​(java.util.Map<java.lang.String,​?> document, io.netty.buffer.ByteBuf out)
    • encodeValue

      public static void encodeValue​(byte type, java.lang.Object value, io.netty.buffer.ByteBuf buffer)
    • determineType

      public static byte determineType​(java.lang.Object value)