Class ZipArchiveEntryRequest
java.lang.Object
org.apache.commons.compress.archivers.zip.ZipArchiveEntryRequest
A Thread-safe representation of a ZipArchiveEntry that is used to add entries to parallel archives.
- Since:
- 1.10
-
Method Summary
Modifier and TypeMethodDescriptionstatic ZipArchiveEntryRequest
createZipArchiveEntryRequest
(ZipArchiveEntry zipArchiveEntry, InputStreamSupplier payloadSupplier) Creates a ZipArchiveEntryRequestint
Gets the compression method to useGets the payload that will be added to this ZIP entry
-
Method Details
-
createZipArchiveEntryRequest
public static ZipArchiveEntryRequest createZipArchiveEntryRequest(ZipArchiveEntry zipArchiveEntry, InputStreamSupplier payloadSupplier) Creates a ZipArchiveEntryRequest- Parameters:
zipArchiveEntry
- The entry to usepayloadSupplier
- The payload that will be added to the ZIP entry.- Returns:
- The newly created request
-
getMethod
Gets the compression method to use- Returns:
- The compression method to use
-
getPayloadStream
Gets the payload that will be added to this ZIP entry- Returns:
- The input stream.
-