public void parse() throws IOException, ClassFormatException {
    int magic = myInput.readInt();
    if(magic != 0xCAFEBABE) {
      throw new ClassFormatException("Invalid class file: magic incorrect");
    }

    // version
    myInput.readShort();
    myInput.readShort();

    int constantPoolCount = myInput.readShort();

    for(int i = 0; i < constantPoolCount - 1;) {
      i += readConstant();
    }
  }
public void parse()