Package com.mongodb.util
Class Util
-
- com.mongodb.util.Util
-
public class Util extends
Deprecated.there is no replacement for this classGeneral utilities that are useful throughout the driver.
-
-
Constructor Summary
Constructors Constructor Description Util()
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static
hexMD5(byte[] data)
Deprecated.Produce hex representation of the MD5 digest of a byte array.static
buf, int offset, int len)
Deprecated.Produce hex representation of the MD5 digest of a byte array.static
toHex(byte[] bytes)
Deprecated.Converts the given byte buffer to a hexadecimal string using .
-
-
-
Method Detail
-
toHex
public static toHex(byte[] bytes)
Deprecated.Converts the given byte buffer to a hexadecimal string using .- Parameters:
bytes
- the bytes to convert to hex- Returns:
- a String containing the hex representation of the given bytes.
-
hexMD5
public static hexMD5(byte[] data)
Deprecated.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 hexMD5( buf, int offset, int len)
Deprecated.Produce hex representation of the MD5 digest of a byte array.- Parameters:
buf
- byte buffer containing the bytes to digestoffset
- the position to start reading bytes fromlen
- the number of bytes to read from the buffer- Returns:
- hex string of the MD5 digest
-
-