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(); }
private void initNameIndex() throws IOException { byte[] nIndex = new byte[NAME_INDEX_NUM_BYTES]; fis.read(nIndex); nameIndex = (int) Structure.valueFromBytes(nIndex); }
private void initDescriptorIndex() throws IOException { byte[] dIndex = new byte[DESCRIPTOR_INDEX_NUM_BYTES]; fis.read(dIndex); descriptorIndex = (int) Structure.valueFromBytes(dIndex); }
private void initAccessFlag() throws IOException { byte[] flag = new byte[ACESS_FLAGS_NUM_BYTES]; fis.read(flag); accessFlag = new FieldAccessFlag((int) Structure.valueFromBytes(flag)); }