I have a byte[]
that represents HelloWorld.class
now I want to convert into say a String that represents a bytecode(similar to javap -c HelloWorld.class
)? And I want to do this programmatically.
Simply put I want to go from
byte[]
to String
that represents javap -c HelloWorld.class
and
bytecode String
back to byte[]
Note: All done programatically so I dont want to invoke anything through command line
Open to any well known standard libraries like asm or bytebuddy.