Packages

  • package root
    Definition Classes
    root
  • package org
    Definition Classes
    root
  • package gerweck
    Definition Classes
    org
  • package scala
    Definition Classes
    gerweck
  • package util
    Definition Classes
    scala
  • package stream
    Definition Classes
    util
  • object ZipStream

    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.

    Definition Classes
    stream
  • DeflateEntry
  • Entry
  • EntryMetadata
  • EntryStorage
  • ExistingZip
  • StoreEntry
  • Zippable

final class Entry extends Zippable

An entry to be written into the zip file.

Note

These are NOT serializable, as they contain a stream Source.

Linear Supertypes
Zippable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Entry
  2. Zippable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Entry(metadata: EntryMetadata, data: Source[ByteString, _])

    data

    the data that you wish to write into this entry. This entire source must be exhausted before the next entry can be started, so a stall here will hold up the entire stream. Similarly, a failure in this stream will fail the entire archive.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. val metadata: EntryMetadata
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  16. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  17. lazy val toActionSource: Source[ZipAction, NotUsed]
    Attributes
    protected[org.gerweck.scala.util.stream.ZipStream]
    Definition Classes
    EntryZippable
  18. def toString(): String
    Definition Classes
    AnyRef → Any
  19. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Zippable

Inherited from AnyRef

Inherited from Any

Ungrouped