com.mongodb.util
Class Util

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

public class Util
extends java.lang.Object

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


Constructor Summary
Util()
           
 
Method Summary
static java.lang.String hexMD5(byte[] data)
          Produce hex representation of the MD5 digest of a byte array
static java.lang.String hexMD5(java.nio.ByteBuffer buf, int offset, int len)
           
static java.lang.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 java.lang.String toHex(byte[] b)

hexMD5

public static java.lang.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 java.lang.String hexMD5(java.nio.ByteBuffer buf,
                                      int offset,
                                      int len)