Android程序员的硬通货,三面腾讯,已拿offer
3、获得结果并输出*/byte[] newClassBytes = cw.toByteArray();File file = new File(“xxx/test/java2/”);file.mkdirs();FileOutputStream fos = new FileOutputStream(“xxx/test/java2/InjectTest.class”);fos.write(newClassBytes);fos.close();关于ASM框架本身的设计,我们这里先不讨论.