wt.util
Class DumpUtil

java.lang.Object
  extended bywt.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


Field Summary
private static String CLASSNAME
           
private static String RESOURCE
           
 
Constructor Summary
DumpUtil()
           
 
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.
static void dumpMemoryStatistics(DebugWriter writer)
          Reports memory statistics to the specified DebugWriter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME
Constructor Detail

DumpUtil

public DumpUtil()
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

dumpMemoryStatistics

public static void dumpMemoryStatistics(DebugWriter writer)
Reports memory statistics to the specified DebugWriter.

Supported API: false


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