Exemplo n.º 1
0
 private static byte[] loadClassFile(File classFile) {
   try {
     DataInputStream in = new DataInputStream(new FileInputStream(classFile));
     byte[] ret = new byte[(int) classFile.length()];
     in.readFully(ret);
     in.close();
     return ret;
   } catch (IOException e) {
     log.info(e.getMessage());
   }
   return null;
 }