Main Page | Class Hierarchy | Data Structures | Directories | File List | Data Fields | Related Pages

com::sleepycat::db::internal::DbUtil Class Reference


Static Public Member Functions

static int array2int (byte[] arr, int offset)
static void int2array (int n, byte[] arr, int offset)
static String byteArrayToString (byte[] barr)
static String objectArrayToString (Object[] arr, String name)

Detailed Description

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.)

Definition at line 17 of file DbUtil.java.


Member Function Documentation

static int com::sleepycat::db::internal::DbUtil::array2int byte[]  arr,
int  offset
[inline, static]
 

Get the u_int32_t stored beginning at offset "offset" into array "arr". We have to do the conversion manually since it's a C-native int, and we're not really supposed to make this kind of cast in Java.

Returns:
Description of the Return Value

Definition at line 26 of file DbUtil.java.

static String com::sleepycat::db::internal::DbUtil::byteArrayToString byte[]  barr  )  [inline, static]
 

Convert a byte array to a concise, readable string suitable for use in toString methods of the *Stat classes.

Returns:
Description of the Return Value

Definition at line 122 of file DbUtil.java.

static void com::sleepycat::db::internal::DbUtil::int2array int  n,
byte[]  arr,
int  offset
[inline, static]
 

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.

Definition at line 75 of file DbUtil.java.

static String com::sleepycat::db::internal::DbUtil::objectArrayToString Object[]  arr,
String  name
[inline, static]
 

Convert an object array to a string, suitable for use in toString methods of the *Stat classes.

Returns:
Description of the Return Value

Definition at line 154 of file DbUtil.java.


The documentation for this class was generated from the following file:
Generated on Sun Dec 25 12:15:02 2005 for Berkeley DB 4.4.16 by  doxygen 1.4.2