Class ZipStream

    • Constructor Detail

      • ZipStream

        public ZipStream​(InputStream inputStream)
    • Method Detail

      • 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