Utilities for accessing objects in DTFJ
When operating on objects in a DTFJ image there are some common operations which can be simplified by a few utility classes. Over time the number of these will grow but for now there are some designed to simplify the use of Iterators and
com.ibm.dtfj.analyzer.util.DTFJIterator
A class that takes an Iterator as returned by DTFJ and internally handles any CorruptData objects to avoid the analyzer having to deal with them. The objects can be simply logged and will also be counted and limited so that the analyzer is not forced to deal with long runs of corrupt objects if the dump is badly damaged. The methods are the same as those on Iterator with the addition of
com.ibm.dtfj.analyzer.util.DTFJSortedIterator
This extends the capbility of DTFJIterator to sort the objects returned into an order determined by the object type. Threads are sorted into name order, objects into address order etc. The interface is exactly the same as for DTFJIterator. For more complex forms of iterator we provide the ObjectIterator class which is further described in ObjectIterator and filtering
com.ibm.dtfj.analyzer.util.SimpleVector
A class that is intended to simplify the handling of arrays of objects by providing capability similar to that found on the Vector class.