可以將類從URLClassLoader保存到普通的file.class中嗎?然後反編譯它?將類從URLClassLoader保存到文件?並反編譯它?
我試圖將它保存就像使用
Class<?> clazz = classLoader.loadClass("foo.Bar");
FileOutputStream sf = new FileOutputStream(f);
ObjectOutputStream s = new ObjectOutputStream(sf);
s.writeObject(clazz);
s.close();
卜對象不起作用。
那麼...如何反編譯它呢?我需要得到類似於jd-gui的結果,但使用URLClassLoader中的類。