public static byte[] loadClassBackup(Class c) throws IOException {
  long t0=System.nanoTime();
  try {
    File classFile=getClassFile(c);
    if (classFile.exists()) {
      Log.print(2,"retrieving backup " + classFile);
      byte[] buffer=new byte[(int)classFile.length()];
      FileInputStream fis=new FileInputStream(classFile);
      BufferedInputStream bis=new BufferedInputStream(fis);
      bis.read(buffer);
      bis.close();
      return buffer;
    }
    return null;
  }
  finally {
    long dt=System.nanoTime() - t0;
    totalReadTime.addAndGet(dt);
  }
}

public static byte [ ] loadClassBackup ( Class c ) throws IOException { long t0 = System . nanoTime ( ) ; try { File classFile = getClassFile ( c ) ; if ( classFile . exists ( ) ) { Log . print ( 2 , "retrieving backup " + classFile ) ; byte [ ] buffer = new byte [ ( int ) classFile . length ( ) ] ; FileInputStream fis = new FileInputStream ( classFile ) ; BufferedInputStream bis = new BufferedInputStream ( fis ) ; bis . read ( buffer ) ; bis . close ( ) ; return buffer ; } return null ; } finally { long dt = System . nanoTime ( ) - t0 ; totalReadTime . addAndGet ( dt ) ; } }
gets the bytes that originally defined a given class . < p > this method tries first to load the class from a backup file created in the filesystem just before that class was enhanced .
