Class ZipGenerator

  • All Implemented Interfaces:
    io.vertx.core.streams.ReadStream , io.vertx.core.streams.StreamBase

    
    public final class ZipGenerator
     implements ReadStream<Buffer>
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      ReadStream<Buffer> handler(Handler<Buffer> handler)
      ReadStream<Buffer> fetch(Long amount)
      ReadStream<Buffer> pause() Pauses the reading.
      ReadStream<Buffer> resume() Resumes the reading.
      ReadStream<Buffer> exceptionHandler(Handler<Throwable> handler) Sets the failure handler.
      ReadStream<Buffer> endHandler(Handler<Void> endHandler)
      final static Unit downloadZip(Vertx vertx, RoutingContext context, String zipName, List<TempFile> files, Handler<Boolean> handler)
      • Methods inherited from class io.vertx.core.streams.ReadStream

        pipe, pipeTo, pipeTo
      • Methods inherited from class java.lang.Object

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

      • handler

         ReadStream<Buffer> handler(Handler<Buffer> handler)
      • fetch

         ReadStream<Buffer> fetch(Long amount)
      • pause

         ReadStream<Buffer> pause()

        Pauses the reading.

        Returns:

        the current AsyncInputStream

      • resume

         ReadStream<Buffer> resume()

        Resumes the reading.

        Returns:

        the current AsyncInputStream

      • exceptionHandler

         ReadStream<Buffer> exceptionHandler(Handler<Throwable> handler)

        Sets the failure handler.

        Parameters:
        handler - the failure handler.
        Returns:

        the current org.wisdom.framework.vertx.AsyncInputStream