Package

org.gerweck.scala.util

stream

Permalink

package stream

Visibility
  1. Public
  2. All

Value Members

  1. object FileStreams

    Permalink

    Utilities for working with streams to and from files.

  2. object StreamUtils

    Permalink

    General utilities for building streams

  3. object XmlPrettyPrinter

    Permalink

    A streaming pretty printer for XML.

  4. object ZipStream

    Permalink

    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.

Ungrouped