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?
Asked
Active
Viewed 615 times
0
-
Please add the relevant quote from the ASM manual. – Paul Bellora Jun 20 '13 at 18:19
-
4just dumping the bytes into an appropriately-named file won't do? – John Dvorak Jun 20 '13 at 18:19
1 Answers
7
Just open a FileOutputStream
, write
the byte array into it and close
it.

Costi Ciudatu
- 37,042
- 7
- 56
- 92