public class ZipStream extends Object
ZipInputStream| Modifier and Type | Class and Description |
|---|---|
class |
ZipStream.ZipStreamEntry
|
| Constructor and Description |
|---|
ZipStream(InputStream inputStream) |
| Modifier and Type | Method and Description |
|---|---|
void |
forEach(Consumer<ZipStream.ZipStreamEntry> consumer)
Performs an action for each zip entry of this stream.
|
static ZipStream |
of(InputStream inputStream)
Create thg
ZipStream corresponding to an InputStream. |
static ZipStream |
of(org.springframework.web.multipart.MultipartFile multipartFile)
Create thg
ZipStream corresponding to a MultipartFile. |
public ZipStream(InputStream inputStream)
public void forEach(Consumer<ZipStream.ZipStreamEntry> consumer) throws IOException
consumer - the action to perform on the zip entriesIOException - in case of zip entry input stream access errorpublic static ZipStream of(org.springframework.web.multipart.MultipartFile multipartFile) throws IOException
ZipStream corresponding to a MultipartFile.multipartFile - the multipart fileIOException - in case of multipart file input stream access errorpublic static ZipStream of(InputStream inputStream) throws IOException
ZipStream corresponding to an InputStream.inputStream - the inputStreamIOException - in case of input stream access errorCopyright © 2017–2018 Alfresco. All rights reserved.