Class ZipGenerator
-
- All Implemented Interfaces:
-
io.vertx.core.streams.ReadStream,io.vertx.core.streams.StreamBase
public final class ZipGenerator implements ReadStream<Buffer>
-
-
Field Summary
Fields Modifier and Type Field Description public final static IntegerSTATUS_PAUSEDpublic final static IntegerSTATUS_ACTIVEpublic final static IntegerSTATUS_CLOSED
-
Constructor Summary
Constructors Constructor Description ZipGenerator(Vertx vertx, FileEntryIterator source)
-
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 UnitdownloadZip(Vertx vertx, RoutingContext context, String zipName, List<TempFile> files, Handler<Boolean> handler)-
-
Constructor Detail
-
ZipGenerator
ZipGenerator(Vertx vertx, FileEntryIterator source)
-
-
Method Detail
-
handler
ReadStream<Buffer> handler(Handler<Buffer> handler)
-
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
-
endHandler
ReadStream<Buffer> endHandler(Handler<Void> endHandler)
-
-
-
-