code: public void parse() {
          // read resource file header.
          ResourceTableHeader resourceTableHeader = (ResourceTableHeader) readChunkHeader();
  
          // read string pool chunk
          stringPool = ParseUtils.readStringPool(buffer, (StringPoolHeader) readChunkHeader());
  
          resourceTable = new ResourceTable();
          resourceTable.setStringPool(stringPool);
  
          PackageHeader packageHeader = (PackageHeader) readChunkHeader();
          for (int i = 0; i < resourceTableHeader.getPackageCount(); i++) {
              Pair<ResourcePackage, PackageHeader> pair = readPackage(packageHeader);
              resourceTable.addPackage(pair.getLeft());
              packageHeader = pair.getRight();
          }
      }
docs: parse resource table file.