Package de.caluga.morphium.driver.bson
Class BsonDecoder
- java.lang.Object
-
- de.caluga.morphium.driver.bson.BsonDecoder
-
public class BsonDecoder extends Object
decoding BSON coming from mongodb
-
-
Constructor Summary
Constructors Constructor Description BsonDecoder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,Object>decodeDocument(byte[] in)static intdecodeDocumentIn(Map<String,Object> ret, byte[] in, int startIndex)static intreadInt(byte[] bytes, int idx)static longreadLong(byte[] bytes, int idx)static longreadLongBigEndian(byte[] bytes, int idx)
-
-
-
Method Detail
-
decodeDocument
public static Map<String,Object> decodeDocument(byte[] in) throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
-
decodeDocumentIn
public static int decodeDocumentIn(Map<String,Object> ret, byte[] in, int startIndex) throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
-
readInt
public static int readInt(byte[] bytes, int idx)
-
readLongBigEndian
public static long readLongBigEndian(byte[] bytes, int idx)
-
readLong
public static long readLong(byte[] bytes, int idx)
-
-