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
Read the class file format documentation - or use a library which knows how to parse class files, such as BCEL and its ClassParser class.