| java.lang.Object org.jacorb.poa.util.IdUtil
IdUtil | final public class IdUtil (Code) | | This class collects some oid related basic routines.
author: Reimo Tiedemann, FU Berlin version: 1.05, 21/01/00, RT |
Method Summary | |
public static byte[] | concat(byte[] first, byte[] second) | public static byte[] | createId(int random_len) | public static boolean | equals(byte[] first, byte[] second) | public static boolean | equals(byte[] first, byte[] second, int len) | public static byte[] | extract(byte[] id, int offset, int len) | public static byte[] | toId(long l) |
concat | public static byte[] concat(byte[] first, byte[] second)(Code) | | |
createId | public static byte[] createId(int random_len)(Code) | | 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)(Code) | | |
equals | public static boolean equals(byte[] first, byte[] second, int len)(Code) | | compares first len bytes of two byte arrays
|
extract | public static byte[] extract(byte[] id, int offset, int len)(Code) | | extracts len bytes from id, the first byte to be copied is at index offset
|
toId | public static byte[] toId(long l)(Code) | | converts the number l into a byte array
|
|
|