Save This Page
Home » openjdk-7 » sun » misc » [javadoc | source]
sun.misc
abstract public class: ClassFileTransformer [javadoc | source]
java.lang.Object
   sun.misc.ClassFileTransformer
This is an abstract base class which is called by java.lang.ClassLoader when ClassFormatError is thrown inside defineClass(). The purpose of this class is to allow applications (e.g. Java Plug-in) to have a chance to transform the byte code from one form to another if necessary. One application of this class is used by Java Plug-in to transform malformed JDK 1.1 class file into a well-formed Java 2 class file on-the-fly, so JDK 1.1 applets with malformed class file in the Internet may run in Java 2 after transformation.
Method from sun.misc.ClassFileTransformer Summary:
add,   getTransformers,   transform
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from sun.misc.ClassFileTransformer Detail:
 public static  void add(ClassFileTransformer t) 
    Add the class file transformer object.
 public static ClassFileTransformer[] getTransformers() 
    Get the array of ClassFileTransformer object.
 abstract public byte[] transform(byte[] b,
    int off,
    int len) throws ClassFormatError
    Transform a byte array from one to the other.