سؤال

I am using ASM to transform a java class. Instead of loading the byte array into memory, I would like to save the resulting byte array to a .class file. The ASM manual says this is possible, but does not give an example. How can I do this?

هل كانت مفيدة؟

المحلول

Just open a FileOutputStream, write the byte array into it and close it.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top