public class DbUtil
extends java.lang.Object
Constructor and Description |
---|
DbUtil() |
Modifier and Type | Method and Description |
---|---|
static int |
array2int(byte[] arr,
int offset)
Get the u_int32_t stored beginning at offset "offset" into
array "arr".
|
static java.lang.String |
byteArrayToString(byte[] barr)
Convert a byte array to a concise, readable string suitable
for use in toString methods of the *Stat classes.
|
static int |
default_lorder() |
static void |
int2array(int n,
byte[] arr,
int offset)
Store the specified u_int32_t, with endianness appropriate to
the platform we're running on, into four consecutive bytes of
the specified byte array, starting from the specified offset.
|
static java.lang.String |
objectArrayToString(java.lang.Object[] arr,
java.lang.String name)
Convert an object array to a string, suitable for use in
toString methods of the *Stat classes.
|
public static int array2int(byte[] arr, int offset)
public static void int2array(int n, byte[] arr, int offset)
public static java.lang.String byteArrayToString(byte[] barr)
public static java.lang.String objectArrayToString(java.lang.Object[] arr, java.lang.String name)
public static int default_lorder()