Package com.subhajit.diagram.callgraph

Examples of com.subhajit.diagram.callgraph.MethodInvocationDiagramGenerator


  public static byte[] computeCallDiagram(final String className,
      final URLClassLoader classLoader) throws IOException,
      ClassNotFoundException, InterruptedException {
    byte[] tempFileBytes;
    MethodInvocationDiagramGenerator methodInvocationGen = new MethodInvocationDiagramGenerator(
        classLoader, className);
    // Save it in a temporary file.
    File tempFile = File.createTempFile("tmp", ".png");
    try {
      methodInvocationGen.generate(tempFile);
      tempFileBytes = FileUtils.loadFile(tempFile);
    } finally {
      if (tempFile != null && tempFile.exists()) {
        FileUtils.deleteFile(tempFile);
      }
View Full Code Here

TOP

Related Classes of com.subhajit.diagram.callgraph.MethodInvocationDiagramGenerator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.