Module jcifs

Class UUID


public class UUID extends rpc.uuid_t
Represents a DCE/RPC UUID (Universally Unique Identifier). This class provides methods for UUID string parsing and binary conversion.
  • Constructor Details

    • UUID

      public UUID(rpc.uuid_t uuid)
      Constructs a UUID from an existing rpc.uuid_t object
      Parameters:
      uuid - the wrapped uuid object to copy values from
    • UUID

      public UUID(String str)
      Constructs a UUID from a string representation
      Parameters:
      str - the string representation of the UUID to parse
  • Method Details

    • hex_to_bin

      public static int hex_to_bin(char[] arr, int offset, int length)
      Convert hexadecimal characters to binary integer
      Parameters:
      arr - the character array containing hex digits
      offset - the starting position in the array
      length - the number of hex digits to convert
      Returns:
      the integer value of the hex digits
    • bin_to_hex

      public static String bin_to_hex(int value, int length)
      Convert binary integer to hexadecimal string
      Parameters:
      value - the integer value to convert
      length - the desired length of the hex string
      Returns:
      the hexadecimal string representation
    • toString

      public String toString()
      Overrides:
      toString in class Object