Provider of streams that take in zip entries and produces zipped data as output.
Provider of streams that take in zip entries and produces zipped data as output.
This offers a number of methods that will create
Akka Streams stages that can be used
to write zip archives. To write to your zip, you will send in a stream of ZipStream.Entry
objects, which are an abstraction of a single entry in a zip archive.
The structure of a zip archive requires that a single entry is written to completion once
it is started, so you may wish to organize the incoming stream so that it does not emit an
Entry until its data is available.
For example, if the contents of a file are generated by a database query, you may wish to have
the completion of the query produce the Entry object rather than immediately producing an
entry that then executes a query to fetch the required data.
Provider of streams that take in zip entries and produces zipped data as output.
This offers a number of methods that will create Akka Streams stages that can be used to write zip archives. To write to your zip, you will send in a stream of ZipStream.Entry objects, which are an abstraction of a single entry in a zip archive.
The structure of a zip archive requires that a single entry is written to completion once it is started, so you may wish to organize the incoming stream so that it does not emit an
Entry
until its data is available.For example, if the contents of a file are generated by a database query, you may wish to have the completion of the query produce the
Entry
object rather than immediately producing an entry that then executes a query to fetch the required data.