Home » Other » General » Retrieving java classes bytecode
Retrieving java classes bytecode [message #189765] Sat, 26 August 2006 15:58 Go to next message
zeninguem
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.

Thanks.
Re: Retrieving java classes bytecode [message #190662 is a reply to message #189765] Thu, 31 August 2006 10:30 Go to previous message
orafaqer
Messages: 48
Registered: July 2006
Member
I don't know if there any table containing class bytecodes.
You can get it via Java (as InputStream) using something like that
Class.forName("org.my.MyClass");
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 Dec 02 20:48:21 CST 2016

Total time taken to generate the page: 0.13952 seconds