This package facilitates reading and writing of Java .class files. It is called Classfile Reader & Writer.
One useful feature of this package is a code snippet that enables users to read in a classfile and write it back out to a different file. This process is made simple thanks to the following lines of code:
InputStream is = new FileInputStream("Foo.class");
OutputStream os = new FileOutputStream("FooCopy.class");
ClassInfo classInfo = new ClassInfo();
new ClassFileReader().read(is, classInfo);
classInfo.setName("FooCopy");
new ClassFileWriter().write(classInfo, os);
is.close();os.close();
It's worth noting also that the software is capable of reading "obfuscated" classfiles (such as those generated by Crema), but it cannot write them. This is because obfuscated classfiles contain invalid data that most VMs ignore. If the ClassFileReader encounters invalid data, it simply ignores it.