private void read(DataInputStream in) throws IOException {
   accessFlags = in.readUnsignedShort();
   name = in.readUnsignedShort();
   descriptor = in.readUnsignedShort();
   int n = in.readUnsignedShort();
   attribute = new LinkedList();
   for (int i = 0; i < n; ++i) attribute.add(AttributeInfo.read(constPool, in));
 }
Beispiel #2
0
  CodeAttribute(ConstPool cp, int name_id, DataInputStream in) throws IOException {
    super(cp, name_id, (byte[]) null);
    int attr_len = in.readInt();

    maxStack = in.readUnsignedShort();
    maxLocals = in.readUnsignedShort();

    int code_len = in.readInt();
    info = new byte[code_len];
    in.readFully(info);

    exceptions = new ExceptionTable(cp, in);

    attributes = new ArrayList();
    int num = in.readUnsignedShort();
    for (int i = 0; i < num; ++i) attributes.add(AttributeInfo.read(cp, in));
  }