Class ZipStream

java.lang.Object
org.activiti.cloud.services.common.zip.ZipStream

public class ZipStream extends Object
Zip stream based on a ZipInputStream
  • Constructor Details

    • ZipStream

      public ZipStream(InputStream inputStream)
  • Method Details

    • forEach

      public void forEach(Consumer<ZipStream.ZipStreamEntry> consumer) throws IOException
      Performs an action for each zip entry of this stream.
      Parameters:
      consumer - the action to perform on the zip entries
      Throws:
      IOException - in case of zip entry input stream access error
    • of

      public static ZipStream of(org.springframework.web.multipart.MultipartFile multipartFile) throws IOException
      Create thg ZipStream corresponding to a MultipartFile.
      Parameters:
      multipartFile - the multipart file
      Returns:
      the zip stream
      Throws:
      IOException - in case of multipart file input stream access error
    • of

      public static ZipStream of(InputStream inputStream) throws IOException
      Create thg ZipStream corresponding to an InputStream.
      Parameters:
      inputStream - the inputStream
      Returns:
      the zip stream
      Throws:
      IOException - in case of input stream access error