Class ZipStream
- java.lang.Object
-
- org.activiti.cloud.services.common.zip.ZipStream
-
public class ZipStream extends java.lang.ObjectZip stream based on aZipInputStream
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classZipStream.ZipStreamEntryWrapper overZipEntryused inZipStream
-
Constructor Summary
Constructors Constructor Description ZipStream(java.io.InputStream inputStream)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidforEach(java.util.function.Consumer<ZipStream.ZipStreamEntry> consumer)Performs an action for each zip entry of this stream.static ZipStreamof(java.io.InputStream inputStream)Create thgZipStreamcorresponding to anInputStream.static ZipStreamof(org.springframework.web.multipart.MultipartFile multipartFile)Create thgZipStreamcorresponding to aMultipartFile.
-
-
-
Method Detail
-
forEach
public void forEach(java.util.function.Consumer<ZipStream.ZipStreamEntry> consumer) throws java.io.IOException
Performs an action for each zip entry of this stream.- Parameters:
consumer- the action to perform on the zip entries- Throws:
java.io.IOException- in case of zip entry input stream access error
-
of
public static ZipStream of(org.springframework.web.multipart.MultipartFile multipartFile) throws java.io.IOException
Create thgZipStreamcorresponding to aMultipartFile.- Parameters:
multipartFile- the multipart file- Returns:
- the zip stream
- Throws:
java.io.IOException- in case of multipart file input stream access error
-
-