com.sun.btrace
Class BTraceUtils.Export

java.lang.Object
  extended by com.sun.btrace.BTraceUtils.Export
Enclosing class:
BTraceUtils

public static class BTraceUtils.Export
extends java.lang.Object


Constructor Summary
BTraceUtils.Export()
           
 
Method Summary
static void serialize(java.io.Serializable obj, java.lang.String fileName)
          Serialize a given object into the given file.
static java.lang.String toXML(java.lang.Object obj)
          Creates an XML document to persist the tree of the all transitively reachable objects from given "root" object.
static void writeDOT(java.lang.Object obj, java.lang.String fileName)
          Writes a .dot document to persist the tree of the all the transitively reachable objects from the given "root" object.
static void writeXML(java.lang.Object obj, java.lang.String fileName)
          Writes an XML document to persist the tree of the all the transitively reachable objects from the given "root" object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BTraceUtils.Export

public BTraceUtils.Export()
Method Detail

serialize

public static void serialize(java.io.Serializable obj,
                             java.lang.String fileName)
Serialize a given object into the given file. Under the current dir of traced app, ./btrace<pid>/<btrace-class>/ directory is created. Under that directory, a file of given fileName is created.

Parameters:
obj - object that has to be serialized.
fileName - name of the file to which the object is serialized.

toXML

public static java.lang.String toXML(java.lang.Object obj)
Creates an XML document to persist the tree of the all transitively reachable objects from given "root" object.


writeXML

public static void writeXML(java.lang.Object obj,
                            java.lang.String fileName)
Writes an XML document to persist the tree of the all the transitively reachable objects from the given "root" object. Under the current dir of traced app, ./btrace<pid>/<btrace-class>/ directory is created. Under that directory, a file of the given fileName is created.


writeDOT

public static void writeDOT(java.lang.Object obj,
                            java.lang.String fileName)
Writes a .dot document to persist the tree of the all the transitively reachable objects from the given "root" object. .dot documents can be viewed by Graphviz application (www.graphviz.org) Under the current dir of traced app, ./btrace<pid>/<btrace-class>/ directory is created. Under that directory, a file of the given fileName is created.

Since:
1.1