|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jacorb.poa.util.IdUtil
This class collects some oid related basic routines.
Constructor Summary | |
IdUtil()
|
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public IdUtil()
Method Detail |
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)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |