示例#1
0
  private void initAttributes() throws Exception {
    byte[] attributeCount = new byte[ATTRIBUTE_COUNT_NUM_BYTES];
    fis.read(attributeCount);

    attributes = new Attribute[(int) Structure.valueFromBytes(attributeCount)];

    for (int i = 0; i < attributes.length; i++)
      attributes[i] = new AttributeParser(fis).parseAttribute();
  }
示例#2
0
 private void initNameIndex() throws IOException {
   byte[] nIndex = new byte[NAME_INDEX_NUM_BYTES];
   fis.read(nIndex);
   nameIndex = (int) Structure.valueFromBytes(nIndex);
 }
示例#3
0
 private void initDescriptorIndex() throws IOException {
   byte[] dIndex = new byte[DESCRIPTOR_INDEX_NUM_BYTES];
   fis.read(dIndex);
   descriptorIndex = (int) Structure.valueFromBytes(dIndex);
 }
示例#4
0
 private void initAccessFlag() throws IOException {
   byte[] flag = new byte[ACESS_FLAGS_NUM_BYTES];
   fis.read(flag);
   accessFlag = new FieldAccessFlag((int) Structure.valueFromBytes(flag));
 }