Class ZipStream


  • public class ZipStream
    extends java.lang.Object
    Zip stream based on a ZipInputStream
    • 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
      void forEach​(java.util.function.Consumer<ZipStream.ZipStreamEntry> consumer)
      Performs an action for each zip entry of this stream.
      static ZipStream of​(java.io.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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ZipStream

        public ZipStream​(java.io.InputStream inputStream)
    • 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 thg ZipStream corresponding to a MultipartFile.
        Parameters:
        multipartFile - the multipart file
        Returns:
        the zip stream
        Throws:
        java.io.IOException - in case of multipart file input stream access error
      • of

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