Class Util


  • @Deprecated
    public class Util
    extends java.lang.Object
    Deprecated.
    there is no replacement for this class
    General 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 java.lang.String hexMD5​(byte[] data)
      Deprecated.
      Produce hex representation of the MD5 digest of a byte array.
      static java.lang.String hexMD5​(java.nio.ByteBuffer buf, int offset, int len)
      Deprecated.
      Produce hex representation of the MD5 digest of a byte array.
      static java.lang.String toHex​(byte[] bytes)
      Deprecated.
      Converts the given byte buffer to a hexadecimal string using Integer.toHexString(int).
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Util

        public Util()
        Deprecated.
    • Method Detail

      • toHex

        public static java.lang.String toHex​(byte[] bytes)
        Deprecated.
        Converts the given byte buffer to a hexadecimal string using Integer.toHexString(int).
        Parameters:
        bytes - the bytes to convert to hex
        Returns:
        a String containing the hex representation of the given bytes.
      • hexMD5

        public static java.lang.String 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 java.lang.String hexMD5​(java.nio.ByteBuffer 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 digest
        offset - the position to start reading bytes from
        len - the number of bytes to read from the buffer
        Returns:
        hex string of the MD5 digest