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 booleanequals(byte[] first, byte[] second)
static booleanequals(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

Method Detail

concat

public static byte[] concat(byte[] first, byte[] second)

createId

public static byte[] createId(int random_len)
creates an id as a concatenation of the current time in msec and random_len random bytes

equals

public static boolean equals(byte[] first, byte[] second)

equals

public static boolean equals(byte[] first, byte[] second, int len)
compares first len bytes of two byte arrays

extract

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

toId

public static byte[] toId(long l)
converts the number l into a byte array