code: static ZTFilePermissions getZTFilePermissions(ZipEntry zipEntry) {
      try {
        ZTFilePermissions permissions = null;
        List<ZipExtraField> fields = ExtraFieldUtils.parse(zipEntry.getExtra());
        AsiExtraField asiExtraField = getFirstAsiExtraField(fields);
        if (asiExtraField != null) {
          int mode = asiExtraField.getMode() & 0777;
          permissions = ZTFilePermissionsUtil.fromPosixFileMode(mode);
        }
        return permissions;
      }
      catch (java.util.zip.ZipException ze) {
        throw new ZipException(ze);
      }
    }
docs: Get assigned to ZIP entry file permissions info. Current implementation tries to read "ASi Unix" (tag 0x756e) extra tag.
  "ASi Unix"
  
  @param zipEntry
  @return file permissions info or <code>null</code> if ZIP entry does not have "ASi Unix" extra field.