|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
org.identityconnectors.common.ByteUtil
public final class ByteUtil
Utility package for byte manipulation.
Method Summary | |
---|---|
static byte[] |
randomBytes() Random array of bytes with a random length. |
static byte[] |
randomBytes(int length) Get a random array of bytes with the length specified. |
static byte[] |
randomBytes(java.util.Random r) Random array of bytes with a random length. |
static byte[] |
randomBytes(java.util.Random r, int length) For those that like the random bytes to be created and returned. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static byte[] randomBytes(java.util.Random r, int length)
Random.nextBytes(byte[])
method to generate the random data.r
- to keep the same randomizer just pass it in..length
- size of the array of random data returned.public static byte[] randomBytes(int length)
length
- the size of the byte array returned.public static byte[] randomBytes(java.util.Random r)
r
- uses the randomizer provided to generate the random data.public static byte[] randomBytes()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |