Пример #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));
 }