Topic: 如何从 ObjectInputStream 中获得原始 Class 文件?

  Print this page

1.如何从 ObjectInputStream 中获得原始 Class 文件? Copy to clipboard
Posted by: wyuanzheng
Posted on: 2002-10-26 17:06

各位, 问一个问题: 如果一个类被 Serilized 了, 我可以通过 Reflection 和 ObjectInputStream 读出来, 但是如何将它保存为原来的 Class 文件?

有无相关工具可以做这件事情?

Thanks. Big Smile

2.回复: 如何从 ObjectInputStream 中获得原始 Class 文件? [Re: wyuanzheng] Copy to clipboard
Posted by: lebrun
Posted on: 2002-10-27 22:15

wyuanzheng wrote:
各位, 问一个问题: 如果一个类被 Serilized 了, 我可以通过 Reflection 和 ObjectInputStream 读出来, 但是如何将它保存为原来的 Class 文件?

有无相关工具可以做这件事情?

Thanks. Big Smile

really not sure about it. but maybe u could try bcel of apache.

The Byte Code Engineering Library (formerly known as JavaClass) is intended to give users a convenient possibility to analyze, create, and manipulate (binary) Java class files (those ending with .class).

http://jakarta.apache.org/bcel/

it's said jboss implemented its dynamic loading thru it.

3.回复: 如何从 ObjectInputStream 中获得原始 Class 文件? [Re: wyuanzheng] Copy to clipboard
Posted by: wyuanzheng
Posted on: 2002-10-28 12:21

Thanks, I'm checking it.


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923