private void addEntry(final String filePath, final File file, final ZipArchiveScatterOutputStream scatterOutputStream, final int method) {
        final ZipArchiveEntry archiveEntry = new ZipArchiveEntry(filePath);
        archiveEntry.setMethod(method);
        scatterOutputStream.addEntry(archiveEntry, () -> {
            try {
                return file.isDirectory() ? new NullInputStream(0) :
                                                    new BufferedInputStream(new FileInputStream(file));
            } catch (final FileNotFoundException e) {
                LOG.error("Can't find file, path={}, {}", file.getPath(), StackTraceUtil.stackTrace(e));
            }
            return new NullInputStream(0) ;
        });
    }
Add archive entry to the scatterOutputStream
jraft-rheakv/rheakv-core/src/main/java/com/alipay/sofa/jraft/rhea/storage/zip/ParallelZipStrategy.java