Example usage for org.apache.commons.compress.archivers.zip ZipArchiveEntryRequest createZipArchiveEntryRequest

List of usage examples for org.apache.commons.compress.archivers.zip ZipArchiveEntryRequest createZipArchiveEntryRequest

Introduction

In this page you can find the example usage for org.apache.commons.compress.archivers.zip ZipArchiveEntryRequest createZipArchiveEntryRequest.

Prototype

public static ZipArchiveEntryRequest createZipArchiveEntryRequest(final ZipArchiveEntry zipArchiveEntry,
        final InputStreamSupplier payloadSupplier) 

Source Link

Document

Create a ZipArchiveEntryRequest

Usage

From source file:org.sead.nds.repository.BagGenerator.java

public void addEntry(ZipArchiveEntry zipArchiveEntry, InputStreamSupplier streamSupplier) throws IOException {
    if (zipArchiveEntry.isDirectory() && !zipArchiveEntry.isUnixSymlink())
        dirs.addArchiveEntry(//w  w w.  j  av  a2 s .c o  m
                ZipArchiveEntryRequest.createZipArchiveEntryRequest(zipArchiveEntry, streamSupplier));
    else
        scatterZipCreator.addArchiveEntry(zipArchiveEntry, streamSupplier);
}