* Thrown if error in stream of bytes containing the class file.
*/
public ClassInfo parseInputStream(DataInputStream dis, String pathToClass)
throws IOException, ClassParserException {
ConstantPool cp = AbstractClassFileParser.readConstantPool(dis);
ClassInfo clazz = new ClassInfo(cp);
short access = AbstractClassFileParser.readAccess(dis);
clazz.setAccess(access);
// <p>
// For Example , a class by name <code>JClassParser</code> in the
// package
// <code>Heart</code> would be saved as: <code>Heart/JClassParser</code>
// </p>.
short thisClassIndex = AbstractClassFileParser.readThisClassIndex(dis);
clazz.setThisClass(cp.getClassName(thisClassIndex));
short superClassIndex = AbstractClassFileParser.readSuperClassIndex(dis);
clazz.setSuperClass(cp.getClassName(superClassIndex));
List<String> interfaceNames = AbstractClassFileParser.readInterfaces(dis,
cp);
clazz.setInterfaces(interfaceNames);