com.mongodb.util
Class Util

java.lang.Object
  extended by com.mongodb.util.Util

public class Util
extends Object

Misc utility helpers. Not sure what else to call the class


Constructor Summary
Util()
           
 
Method Summary
static String hexMD5(byte[] data)
          Produce hex representation of the MD5 digest of a byte array
static String hexMD5(ByteBuffer buf, int offset, int len)
           
static String toHex(byte[] b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

toHex

public static String toHex(byte[] b)

hexMD5

public static String hexMD5(byte[] data)
Produce hex representation of the MD5 digest of a byte array

Parameters:
data - bytes to digest
Returns:
hex string of the MD5 digest

hexMD5

public static String hexMD5(ByteBuffer buf,
                            int offset,
                            int len)