|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.db.internal.DbUtil
public class DbUtil
DbUtil is a simple class that holds a few static utility functions other parts of the package share and that don't have a good home elsewhere. (For now, that's limited to byte-array-to-int conversion and back.)
Constructor Summary | |
---|---|
DbUtil()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DbUtil()
Method Detail |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |