Home » Other » General » Retrieving java classes bytecode
Retrieving java classes bytecode [message #189765] Sat, 26 August 2006 15:58 Go to next message
Messages: 1
Registered: August 2006
Junior Member
Can someone point me to the right tables/views to retrieve the bytecode of a loaded java class. In other words, say I load a Java class MyClass into the DB using loadjava, I'd like to be able to write a query that returnes a BLOB that represents the exact same bytes as seen in the original file MyClass.class.

Re: Retrieving java classes bytecode [message #190662 is a reply to message #189765] Thu, 31 August 2006 10:30 Go to previous message
Messages: 48
Registered: July 2006
I don't know if there any table containing class bytecodes.
You can get it via Java (as InputStream) using something like that
InputStream is = CurrentClass.class.getClassLoader().getResourceAsStream("org/my/MyClass.class");
Previous Topic: interview question
Next Topic: How to determine the appropriate data object size
Goto Forum:

Current Time: Fri Oct 28 09:40:11 CDT 2016

Total time taken to generate the page: 0.05155 seconds