code: private void processPermission(DataInputStream in, ImageVisitor v)
        throws IOException {
      v.visitEnclosingElement(ImageElement.PERMISSIONS);
      v.visit(ImageElement.USER_NAME, Text.readStringOpt(in));
      v.visit(ImageElement.GROUP_NAME, Text.readStringOpt(in));
      FsPermission fsp = new FsPermission(in.readShort());
      v.visit(ImageElement.PERMISSION_STRING, fsp.toString());
      v.leaveEnclosingElement(); // Permissions
    }
docs: Extract the INode permissions stored in the fsimage file.
  
  @param in Datastream to process
  @param v Visitor to walk over inodes