View Single Post
  #1 (permalink)  
Old 08-01-2007, 03:56 PM
boy22 boy22 is offline
Member
 
Join Date: Jul 2007
Posts: 36
boy22 is on a distinguished road
How to load binary content of a .class file
when given the name of a class, I want to retrieve the binary content of the .class file. I have written the following sample but it does not work.
Can anyone help to find what is wrong with my sample?

Code:
String className = this.getClass().getName(); InputStream inputStream = this.getClass().getResourceAsStream (className);

When executing the above code, the input Stream is always returned as "null".


Thanks
Reply With Quote
Sponsored Links