#123408 - Mr Snowflake - Tue Mar 27, 2007 11:22 pm
I'm back with a Java question. I need to be able to read a class from a jar file, because I need to determine it's public functions, public method, public... well everything it's interface delivers to the public :). So my sollution is: Open the jar file with a JarFile object, get the JarEntries, and if they are '.class' write them, using a OutputStream, to a File.createTempFile() and then reflection load them to discover all the public stuff. Is this the way to go, or is my way too complicated and is there an other, easier way?
_________________
http://www.mrsnowflake.be
_________________
http://www.mrsnowflake.be