public class JavaUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT |
static java.lang.String |
VERSION |
Constructor and Description |
---|
JavaUtils() |
Modifier and Type | Method and Description |
---|---|
static int |
byteArray2Int(byte[] in)
Convert the first 4 bytes of array to equivalent integer.
|
static int |
byteArray2Int(byte[] in,
int offset) |
static java.lang.String |
getClassLocation(java.lang.String aClassName)
Return the location of a class given its name,
|
static byte[] |
int2ByteArray(int in)
Convert an integer to a 4 byte array.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String VERSION
public static java.lang.String getClassLocation(java.lang.String aClassName)
aClassName
- The name of the class to be looked uppublic static byte[] int2ByteArray(int in)
in
- integer to convertpublic static int byteArray2Int(byte[] in)
in
- byte array for inputjava.lang.IllegalArgumentException
- if array not at least 4 bytes.public static int byteArray2Int(byte[] in, int offset)
Copyright © 2018 Pegasystems Inc. All Rights Reserved.