org.jacorb.poa.util
Class IdUtil
public final
class
IdUtil
extends Object
This class collects some oid related basic routines.
Version: 1.05, 21/01/00, RT
Author: Reimo Tiedemann, FU Berlin
Method Summary |
static byte[] | concat(byte[] first, byte[] second) |
static byte[] | createId(int random_len)
creates an id as a concatenation of the current time in msec
and random_len random bytes |
static boolean | equals(byte[] first, byte[] second) |
static boolean | equals(byte[] first, byte[] second, int len)
compares first len bytes of two byte arrays |
static byte[] | extract(byte[] id, int offset, int len)
extracts len bytes from id, the first byte to be copied is at index offset |
static byte[] | toId(long l)
converts the number l into a byte array |
public static byte[] concat(byte[] first, byte[] second)
public static byte[] createId(int random_len)
creates an id as a concatenation of the current time in msec
and random_len random bytes
public static boolean equals(byte[] first, byte[] second)
public static boolean equals(byte[] first, byte[] second, int len)
compares first len bytes of two byte arrays
public static byte[] extract(byte[] id, int offset, int len)
extracts len bytes from id, the first byte to be copied is at index offset
public static byte[] toId(long l)
converts the number l into a byte array