Package wt.util

Class DumpUtil

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

    • 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