How to find the package of a class file in java

后端 未结 1 1872
臣服心动
臣服心动 2021-01-16 07:12

I\'m writing a java program that works with .class files. I want to be able to read a .class file on the filesystem (with InputStream) and determine the package that it is i

相关标签:
1条回答
  • 2021-01-16 07:39

    Read the class file format documentation - or use a library which knows how to parse class files, such as BCEL and its ClassParser class.

    0 讨论(0)
提交回复
热议问题