Class ZipStream
java.lang.Object
org.activiti.cloud.services.common.zip.ZipStream
Zip stream based on a
ZipInputStream-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidforEach(Consumer<ZipStream.ZipStreamEntry> consumer) Performs an action for each zip entry of this stream.static ZipStreamof(InputStream inputStream) Create thgZipStreamcorresponding to anInputStream.static ZipStreamof(org.springframework.web.multipart.MultipartFile multipartFile) Create thgZipStreamcorresponding to aMultipartFile.
-
Constructor Details
-
ZipStream
-
-
Method Details
-
forEach
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 thgZipStreamcorresponding to aMultipartFile.- Parameters:
multipartFile- the multipart file- Returns:
- the zip stream
- Throws:
IOException- in case of multipart file input stream access error
-
of
Create thgZipStreamcorresponding to anInputStream.- Parameters:
inputStream- the inputStream- Returns:
- the zip stream
- Throws:
IOException- in case of input stream access error
-