public static BinaryAttribute load(DataInputStream in,BinaryConstantPool cpool,int mask) throws IOException {
  BinaryAttribute atts=null;
  int natt=in.readUnsignedShort();
  for (int i=0; i < natt; i++) {
    Identifier id=cpool.getIdentifier(in.readUnsignedShort());
    int len=in.readInt();
    if (id.equals(idCode) && ((mask & ATT_CODE) == 0)) {
      in.skipBytes(len);
    }
 else {
      byte data[]=new byte[len];
      in.readFully(data);
      atts=new BinaryAttribute(id,data,atts);
    }
  }
  return atts;
}

public static BinaryAttribute load ( DataInputStream in , BinaryConstantPool cpool , int mask ) throws IOException { BinaryAttribute atts = null ; int natt = in . readUnsignedShort ( ) ; for ( int i = 0 ; i < natt ; i ++ ) { Identifier id = cpool . getIdentifier ( in . readUnsignedShort ( ) ) ; int len = in . readInt ( ) ; if ( id . equals ( idCode ) && ( ( mask & ATT_CODE ) == 0 ) ) { in . skipBytes ( len ) ; } else { byte data [ ] = new byte [ len ] ; in . readFully ( data ) ; atts = new BinaryAttribute ( id , data , atts ) ; } } return atts ; }
load a list of attributes
