private EziInfo readEziInfoFile(File eziFile) {
        FileInputStream fileInput = null;
        EziInfo eziInfo = null;
        try {
            fileInput = new FileInputStream(eziFile);
            ObjectInputStream objectInput = new ObjectInputStream(fileInput);
            eziInfo = (EziInfo) objectInput.readObject();
            objectInput.close();
            fileInput.close();

            int numOfFiles = eziInfo.getNumberOfFiles();
            eziInfo.checkFiles();

            if ((eziInfo.getNumberOfFiles() != 0) && (numOfFiles != eziInfo.getNumberOfFiles())) {
                updateEziInfoFile(eziFile, eziInfo);
            }
            if (eziInfo.getNumberOfFiles() == 0) {
                eziFile.delete();
                eziInfo = null;
            }
        } catch (IOException | ClassNotFoundException ex) {
            Logger.getLogger(EziInfoIndexer.class.getName()).log(Level.SEVERE, null, ex);
        }
        return eziInfo;
    }