There is a while statement through which data is read:
int typeArr = 0; int newObj = 0; int name = 0; while ((Name = readInt()) != 0x00) // { int info = in .readUnsignedByte(); int Type = in .readUnsignedByte(); if (PropertySizeType == 1) { typeArr = in .readUnsignedByte(); for (int k = 0; k < typeArr; k++) { newObj = in .readUnsignedByte(); } } } The problem is that after the value of newObj read, it is necessary to switch to the position of this value, that is:
in.seek(newObj) And then you need to use the same while (with all that is there) to read, since the data, starting from newObj , has the same structure as described above.
How is it possible to solve for Java 1.7, not much changing everything (for example, is it possible to do without Void and override ?).