Package de.fub.bytecode.classfile

Examples of de.fub.bytecode.classfile.JavaClass.dump()


  classes = _classes.elements();
  while (classes.hasMoreElements()) {
      final JavaClass cl = (JavaClass)classes.nextElement();
      jos.putNextEntry(new JarEntry(classFileName(cl.getClassName())));
      final ByteArrayOutputStream out = new ByteArrayOutputStream(2048);
      cl.dump(out)// dump() closes it's output stream
      out.writeTo(jos);
  }
  jos.close();
    }
   
View Full Code Here


  while (classes.hasMoreElements()) {
      final JavaClass clazz = (JavaClass)classes.nextElement();
      final String className = clazz.getClassName().replace('.','/');
      jos.putNextEntry(new JarEntry(className+".class"));
      final ByteArrayOutputStream out = new ByteArrayOutputStream(2048);
      clazz.dump(out); // dump() closes it's output stream
      out.writeTo(jos);
  }
  jos.close();
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.