How to determine given file is a class file?
<p>I need to determine that whether a given file is a class file or not. Suppose I change the extension to .exe/.xml or some other, I need to determine whether that given file, if a class file will be parsed differently and if it would be some other, it'll be parsed in that manner.</p>

<p>How can I read the class file format?</p>
