org.netbeans.insane.model
Class Support

java.lang.Object
  extended by org.netbeans.insane.model.Support

public final class Support
extends java.lang.Object

A support class containing HeapModel factories and helper methods for analysing HeapModels.


Method Summary
static void convertSimpleDump(java.io.File from, java.io.File to)
           
static void findRoots(HeapModel model, Item itm, boolean weak)
           
static HeapModel openSimpleBinaryDump(java.io.File file)
          Opens a binary dump of the heap created by conversion from the XML dump produced by SimpleXmlVisitor.
static HeapModel parseSimpleXMLDump(java.io.File file)
          Parses a XML dump of the heap created by the SimpleXmlVisitor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parseSimpleXMLDump

public static HeapModel parseSimpleXMLDump(java.io.File file)
                                    throws java.lang.Exception
Parses a XML dump of the heap created by the SimpleXmlVisitor.

Parameters:
file - the file with the heap dump.
Returns:
The HeapModel representing the heap dump.
Throws:
java.lang.Exception - if there is any error during processing the dump.

openSimpleBinaryDump

public static HeapModel openSimpleBinaryDump(java.io.File file)
                                      throws java.lang.Exception
Opens a binary dump of the heap created by conversion from the XML dump produced by SimpleXmlVisitor.

Parameters:
file - the file with the heap dump.
Returns:
The HeapModel representing the heap dump.
Throws:
java.lang.Exception - if there is any error during processing the dump.

convertSimpleDump

public static void convertSimpleDump(java.io.File from,
                                     java.io.File to)
                              throws java.lang.Exception
Throws:
java.lang.Exception

findRoots

public static void findRoots(HeapModel model,
                             Item itm,
                             boolean weak)