public class ZipGenerator
public static int STATUS_PAUSED
PAUSED state.
public static int STATUS_ACTIVE
ACTIVE state.
public static int STATUS_CLOSED
CLOSED state.
public static io.zeko.restapi.core.utilities.zip.ZipGenerator.Companion Companion
public ZipGenerator(@NotNull
io.vertx.core.Vertx vertx,
@NotNull
FileEntryIterator source)
@NotNull
public io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> handler(@NotNull
io.vertx.core.Handler<io.vertx.core.buffer.Buffer> handler)
@NotNull public io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> fetch(long amount)
@Nullable public io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> pause()
Pauses the reading.
AsyncInputStream@Nullable public io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> resume()
Resumes the reading.
AsyncInputStream@Nullable
public io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> exceptionHandler(@NotNull
io.vertx.core.Handler<java.lang.Throwable> handler)
Sets the failure handler.
handler - the failure handler.@NotNull
public io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> endHandler(@Nullable
io.vertx.core.Handler<java.lang.Void> endHandler)
@JvmStatic
public static void downloadZip(@NotNull
io.vertx.core.Vertx vertx,
@NotNull
io.vertx.ext.web.RoutingContext context,
@NotNull
java.lang.String zipName,
@NotNull
java.util.List<io.zeko.restapi.core.utilities.zip.TempFile> files)