0

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?

2
  • Please add the relevant quote from the ASM manual. Commented Jun 20, 2013 at 18:19
  • 4
    just dumping the bytes into an appropriately-named file won't do? Commented Jun 20, 2013 at 18:19

1 Answer 1

7

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.