utils
Class ClassCode

java.lang.Object
  |
  +--utils.ClassCode

public class ClassCode
extends java.lang.Object

Obtain classfile for a class


Constructor Summary
ClassCode()
           
 
Method Summary
static byte[] get(java.lang.String cn)
          Convert a fully qualified class name into an array of its bytes that is the classfile.
static void main(java.lang.String[] args)
          Test the class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassCode

public ClassCode()
Method Detail

get

public static byte[] get(java.lang.String cn)
                  throws java.lang.Exception
Convert a fully qualified class name into an array of its bytes that is the classfile. Search the standard classpath and load the file -- can't find any other way

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Test the class.