org.apache.commons.compress.archivers.zip

## Class ZipArchiveEntryRequest

- java.lang.Object
- - org.apache.commons.compress.archivers.zip.ZipArchiveEntryRequest

-     public class ZipArchiveEntryRequest
      extends Object

  A Thread-safe representation of a ZipArchiveEntry that is used to add entries to parallel archives.
  Since:
    1.10

- - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static ZipArchiveEntryRequest` | `createZipArchiveEntryRequest(ZipArchiveEntry zipArchiveEntry, InputStreamSupplier payloadSupplier)` Creates a ZipArchiveEntryRequest
    `int` | `getMethod()` Gets the compression method to use
    `InputStream` | `getPayloadStream()` Gets the payload that will be added to this ZIP entry

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### createZipArchiveEntryRequest

          public static ZipArchiveEntryRequest createZipArchiveEntryRequest(ZipArchiveEntry zipArchiveEntry,
                                                                            InputStreamSupplier payloadSupplier)

      Creates a ZipArchiveEntryRequest
      Parameters:
        `zipArchiveEntry` - The entry to use
        `payloadSupplier` - The payload that will be added to the ZIP entry.
      Returns:
        The newly created request

    - #### getMethod

          public int getMethod()

      Gets the compression method to use
      Returns:
        The compression method to use

    - #### getPayloadStream

          public InputStream getPayloadStream()

      Gets the payload that will be added to this ZIP entry
      Returns:
        The input stream.

Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.