code: private void fileStatusesInIndex(HarStatus parent, List<FileStatus> statuses,
        List<String> children, FileStatus archiveIndexStat) throws IOException {
      // read the index file
      FSDataInputStream aIn = null;
      try {
        aIn = fs.open(archiveIndex);
        LineReader aLin;
        long read = 0;
        aLin = new LineReader(aIn, getConf());
        String parentString = parent.getName();
        if (!parentString.endsWith(Path.SEPARATOR)){
            parentString += Path.SEPARATOR;
        }
        Path harPath = new Path(parentString);
        int harlen = harPath.depth();
        Text line = new Text();
        while (read < archiveIndexStat.getLen()) {
          int tmp = aLin.readLine(line);
          read += tmp;
          String lineFeed = line.toString();
          String child = decodeFileName(lineFeed.substring(0, lineFeed.indexOf(" ")));
          if ((child.startsWith(parentString))) {
            Path thisPath = new Path(child);
            if (thisPath.depth() == harlen + 1) {
              // bingo!
              HarStatus hstatus = new HarStatus(lineFeed);
              FileStatus childStatus = new FileStatus(hstatus.isDir() ? 0
                  : hstatus.getLength(), hstatus.isDir(), (int) archiveIndexStat
                  .getReplication(), archiveIndexStat.getBlockSize(),
                  hstatus.getModificationTime(), hstatus
                      .getAccessTime(), new FsPermission(hstatus
                      .getPermission()), hstatus.getOwner(),
                  hstatus.getGroup(), makeRelative(this.uri.getPath(),
                      new Path(hstatus.getName())));
              statuses.add(childStatus);
            }
            line.clear();
          }
        }
      } finally {
        if (aIn != null) {
          aIn.close();
        }
      }
    }
docs: Get filestatuses of all the children of a given directory. This just reads
  through index file and reads line by line to get all statuses for children
  of a directory. Its a brute force way of getting all such filestatuses
  
  @param parent
  the parent path directory
  @param statuses
  the list to add the children filestatuses to
  @param children
  the string list of children for this parent
  @param archiveIndexStat
  the archive index filestatus