wt.util
Class DumpUtil

java.lang.Object
  extended by wt.util.DumpUtil

public class DumpUtil
extends Object

This class provides a general method that will use reflection to dump the contents, or state, of a given object.

Supported API: true

Extendable: false


Method Summary
static List convertArray(long[] array)
          Converts the array to a list so that contents can be displayed.
static List convertArray(Object[] array)
          Converts the array to a list so that contents can be displayed.
static void dump(Object object, DebugWriter writer)
          Dumps the contents of the passed object to the passed writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

dump

public static void dump(Object object,
                        DebugWriter writer)
Dumps the contents of the passed object to the passed writer.

Supported API: true

Parameters:
object - the instance to dump
writer - the target that will handle the ouitput being dumped

convertArray

public static List convertArray(Object[] array)
Converts the array to a list so that contents can be displayed.

Supported API: true

Parameters:
array - the instance to convert

convertArray

public static List convertArray(long[] array)
Converts the array to a list so that contents can be displayed.

Supported API: true

Parameters:
array - the instance to convert