Object/Trait

zio.stream

ZPipeline

Related Docs: trait ZPipeline | package stream

Permalink

object ZPipeline extends ZPipelineCompanionVersionSpecific with ZPipelinePlatformSpecificConstructors

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ZPipeline
  2. ZPipelinePlatformSpecificConstructors
  3. ZPipelineCompanionVersionSpecific
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type WithOut[+LowerEnv, -UpperEnv, +LowerErr, -UpperErr, +LowerElem, -UpperElem, OutEnv0[Env], OutErr0[Err], Out0[Elem]] = ZPipeline[LowerEnv, UpperEnv, LowerErr, UpperErr, LowerElem, UpperElem] { ... /* 3 definitions in type refinement */ }

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def branchAfter[LowerEnv, UpperEnv, LowerErr, UpperErr, LowerElem, UpperElem, OutElem[Elem]](n: Int)(f: (Chunk[UpperElem]) ⇒ WithOut[LowerEnv, UpperEnv, LowerErr, UpperErr, LowerElem, UpperElem, [Env]Env, [Err]Err, [Elem]Elem]): WithOut[LowerEnv, UpperEnv, LowerErr, UpperErr, LowerElem, UpperElem, [Env]Env, [Err]Err, [Elem]Elem]

    Permalink
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def collect[In, Out](f: PartialFunction[In, Out]): WithOut[Nothing, Any, Nothing, Any, Nothing, In, [Env]Env, [Err]Err, [Elem]Out]

    Permalink

    Creates a pipeline that collects elements with the specified partial function.

    Creates a pipeline that collects elements with the specified partial function.

    ZPipeline.collect[Option[Int], Int] { case Some(v) => v }
  8. def deflate[Env, Err](bufferSize: Int = 64 * 1024, noWrap: Boolean = false, level: CompressionLevel = CompressionLevel.DefaultCompression, strategy: CompressionStrategy = CompressionStrategy.DefaultStrategy, flushMode: FlushMode = FlushMode.NoFlush)(implicit trace: ZTraceElement): WithOut[Env, Env, Err, Err, Byte, Byte, [Env0]Env, [Err0]Err, [Elem]Byte]

    Permalink
  9. def dropUntil[In](f: (In) ⇒ Boolean): WithOut[Nothing, Any, Nothing, Any, Nothing, In, [Env]Env, [Err]Err, [Elem]Elem]

    Permalink

    Creates a pipeline that drops elements until the specified predicate evaluates to true.

    Creates a pipeline that drops elements until the specified predicate evaluates to true.

    ZPipeline.dropUntil[Int](_ > 100)
  10. def dropWhile[In](f: (In) ⇒ Boolean): WithOut[Nothing, Any, Nothing, Any, Nothing, In, [Env]Env, [Err]Err, [Elem]Elem]

    Permalink

    Creates a pipeline that drops elements while the specified predicate evaluates to true.

    Creates a pipeline that drops elements while the specified predicate evaluates to true.

    ZPipeline.dropWhile[Int](_ <= 100)
  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  13. def filter[In](f: (In) ⇒ Boolean): WithOut[Nothing, Any, Nothing, Any, Nothing, In, [Env]Env, [Err]Err, [Elem]Elem]

    Permalink

    Creates a pipeline that filters elements according to the specified predicate.

  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def fromChannel[InEnv, OutEnv0, InErr, OutErr0, In, Out](channel: ZChannel[OutEnv0, InErr, Chunk[In], Any, OutErr0, Chunk[Out], Any]): WithOut[OutEnv0, InEnv, InErr, InErr, In, In, [Env]OutEnv0, [Err]OutErr0, [Elem]Out]

    Permalink

    Creates a pipeline that sends all the elements through the given channel

  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. def groupAdjacentBy[In, Key](f: (In) ⇒ Key): WithOut[Nothing, Any, Nothing, Any, Nothing, In, [Env]Env, [Err]Err, [Elem](Key, NonEmptyChunk[Elem])]

    Permalink

    Creates a pipeline that groups on adjacent keys, calculated by the specified keying function.

  18. def gunzip[Env](bufferSize: Int = 64 * 1024)(implicit trace: ZTraceElement): WithOut[Env, Env, CompressionException, CompressionException, Byte, Byte, [Env0]Env, [Err0]CompressionException, [Elem]Byte]

    Permalink
  19. def gzip[Env, Err](bufferSize: Int = 64 * 1024, level: CompressionLevel = CompressionLevel.DefaultCompression, strategy: CompressionStrategy = CompressionStrategy.DefaultStrategy, flushMode: FlushMode = FlushMode.NoFlush)(implicit trace: ZTraceElement): WithOut[Env, Env, Err, Err, Byte, Byte, [Env0]Env, [Err0]Err, [Elem]Byte]

    Permalink
  20. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  21. val identity: WithOut[Nothing, Any, Nothing, Any, Nothing, Any, [Env]Env, [Err]Err, [Elem]Elem]

    Permalink

    The identity pipeline, which does not modify streams in any way.

  22. def inflate[Env](bufferSize: Int = 64 * 1024, noWrap: Boolean = false)(implicit trace: ZTraceElement): WithOut[Env, Env, CompressionException, CompressionException, Byte, Byte, [Env0]Env, [Err0]CompressionException, [Elem]Byte]

    Permalink
  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. def iso_8859_1Decode: WithOut[Nothing, Any, Nothing, Any, Nothing, Byte, [Env]Env, [Err]Err, [Elem]String]

    Permalink
  25. def iso_8859_1Encode: WithOut[Nothing, Any, Nothing, Any, Nothing, String, [Env]Env, [Err]Err, [Elem]Byte]

    Permalink
  26. def map[In, Out](f: (In) ⇒ Out): WithOut[Nothing, Any, Nothing, Any, Nothing, In, [Env]Env, [Err]Err, [Elem]Out]

    Permalink

    Creates a pipeline that maps elements with the specified function.

  27. def mapChunks[In, Out](f: (Chunk[In]) ⇒ Chunk[Out]): WithOut[Nothing, Any, Nothing, Any, Nothing, In, [Env]Env, [Err]Err, [Elem]Out]

    Permalink

    Creates a pipeline that maps chunks of elements with the specified function.

  28. def mapError[InError, OutError](f: (InError) ⇒ OutError): WithOut[Nothing, Any, Nothing, InError, Nothing, Any, [Env]Env, [Err]OutError, [Elem]Elem]

    Permalink

    Creates a pipeline that maps elements with the specified function.

  29. def mapZIO[R1, E1, In, Out](f: (In) ⇒ ZIO[R1, E1, Out]): WithOut[R1, Any, Nothing, E1, Nothing, In, [Env]R1, [Err]E1, [Elem]Out]

    Permalink

    Creates a pipeline that maps elements with the specified effect.

  30. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  31. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  32. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  33. def prepend[In](values: Chunk[In]): WithOut[Nothing, Any, Nothing, Any, In, Any, [Env]Env, [Err]Err, [Elem]Elem]

    Permalink

    Emits the provided chunk before emitting any other value.

  34. def provideEnvironment[Env](env: ZEnvironment[Env]): WithOut[Env, Any, Nothing, Any, Nothing, Any, [Env]Any, [Err]Err, [Elem]Elem]

    Permalink

    Creates a pipeline that provides the specified environment.

  35. def rechunk(n: Int): WithOut[Nothing, Any, Nothing, Any, Nothing, Any, [Env]Env, [Err]Err, [Elem]Elem]

    Permalink

    A pipeline that rechunks the stream into chunks of the specified size.

  36. def scan[In, Out](s: Out)(f: (Out, In) ⇒ Out): WithOut[Nothing, Any, Nothing, Any, Nothing, In, [Env]Env, [Err]Err, [Elem]Out]

    Permalink

    Creates a pipeline that scans elements with the specified function.

  37. def scanZIO[Env, Err, In, Out](s: Out)(f: (Out, In) ⇒ ZIO[Env, Err, Out]): WithOut[Nothing, Env, Err, Any, Nothing, In, [Env]Env, [Err]Err, [Elem]Out]

    Permalink

    Creates a pipeline that scans elements with the specified function.

  38. def splitLines: WithOut[Nothing, Any, Nothing, Any, Nothing, String, [Env]Env, [Err]Err, [Elem]String]

    Permalink

    Splits strings on newlines.

    Splits strings on newlines. Handles both Windows newlines (\r\n) and UNIX newlines (\n).

  39. def splitOn(delimiter: String): WithOut[Nothing, Any, Nothing, Any, Nothing, String, [Env]Env, [Err]Err, [Elem]String]

    Permalink

    Splits strings on a delimiter.

  40. def splitOnChunk[A](delimiter: Chunk[A]): WithOut[Nothing, Any, Nothing, Any, Nothing, A, [Env]Env, [Err]Err, [Elem]A]

    Permalink

    Splits strings on a delimiter.

  41. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  42. def take(n: Long): WithOut[Nothing, Any, Nothing, Any, Nothing, Any, [Env]Env, [Err]Err, [Elem]Elem]

    Permalink

    Creates a pipeline that takes n elements.

  43. def takeUntil[In](f: (In) ⇒ Boolean): WithOut[Nothing, Any, Nothing, Any, Nothing, In, [Env]Env, [Err]Err, [Elem]Elem]

    Permalink

    Creates a pipeline that takes elements until the specified predicate evaluates to true.

  44. def takeWhile[In](f: (In) ⇒ Boolean): WithOut[Nothing, Any, Nothing, Any, Nothing, In, [Env]Env, [Err]Err, [Elem]Elem]

    Permalink

    Creates a pipeline that takes elements while the specified predicate evaluates to true.

  45. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  46. def usASCIIDecode: WithOut[Nothing, Any, Nothing, Any, Nothing, Byte, [Env]Env, [Err]Err, [Elem]String]

    Permalink
  47. def usASCIIEncode: WithOut[Nothing, Any, Nothing, Any, Nothing, String, [Env]Env, [Err]Err, [Elem]Byte]

    Permalink
  48. def utf16BEDecode: WithOut[Nothing, Any, Nothing, Any, Nothing, Byte, [Env]Env, [Err]Err, [Elem]String]

    Permalink
  49. def utf16BEEncode: WithOut[Nothing, Any, Nothing, Any, Nothing, String, [Env]Env, [Err]Err, [Elem]Byte]

    Permalink
  50. def utf16BEWithBomEncode: WithOut[Nothing, Any, Nothing, Any, Nothing, String, [Env]Env, [Err]Err, [Elem]Byte]

    Permalink
  51. def utf16Decode: WithOut[Nothing, Any, Nothing, Any, Nothing, Byte, [Env]Env, [Err]Err, [Elem]String]

    Permalink
  52. def utf16Encode: WithOut[Nothing, Any, Nothing, Any, Nothing, String, [Env]Env, [Err]Err, [Elem]Byte]

    Permalink
  53. def utf16LEDecode: WithOut[Nothing, Any, Nothing, Any, Nothing, Byte, [Env]Env, [Err]Err, [Elem]String]

    Permalink
  54. def utf16LEEncode: WithOut[Nothing, Any, Nothing, Any, Nothing, String, [Env]Env, [Err]Err, [Elem]Byte]

    Permalink
  55. def utf16LEWithBomEncode: WithOut[Nothing, Any, Nothing, Any, Nothing, String, [Env]Env, [Err]Err, [Elem]Byte]

    Permalink
  56. def utf16WithBomEncode: WithOut[Nothing, Any, Nothing, Any, Nothing, String, [Env]Env, [Err]Err, [Elem]Byte]

    Permalink
  57. def utf32BEDecode: WithOut[Nothing, Any, Nothing, Any, Nothing, Byte, [Env]Env, [Err]Err, [Elem]String]

    Permalink
  58. def utf32BEEncode: WithOut[Nothing, Any, Nothing, Any, Nothing, String, [Env]Env, [Err]Err, [Elem]Byte]

    Permalink
  59. def utf32BEWithBomEncode: WithOut[Nothing, Any, Nothing, Any, Nothing, String, [Env]Env, [Err]Err, [Elem]Byte]

    Permalink
  60. def utf32Decode: WithOut[Nothing, Any, Nothing, Any, Nothing, Byte, [Env]Env, [Err]Err, [Elem]String]

    Permalink
  61. def utf32Encode: WithOut[Nothing, Any, Nothing, Any, Nothing, String, [Env]Env, [Err]Err, [Elem]Byte]

    Permalink
  62. def utf32LEDecode: WithOut[Nothing, Any, Nothing, Any, Nothing, Byte, [Env]Env, [Err]Err, [Elem]String]

    Permalink
  63. def utf32LEEncode: WithOut[Nothing, Any, Nothing, Any, Nothing, String, [Env]Env, [Err]Err, [Elem]Byte]

    Permalink
  64. def utf32LEWithBomEncode: WithOut[Nothing, Any, Nothing, Any, Nothing, String, [Env]Env, [Err]Err, [Elem]Byte]

    Permalink
  65. def utf32WithBomEncode: WithOut[Nothing, Any, Nothing, Any, Nothing, String, [Env]Env, [Err]Err, [Elem]Byte]

    Permalink
  66. def utf8Decode: WithOut[Nothing, Any, Nothing, Any, Nothing, Byte, [Env]Env, [Err]Err, [Elem]String]

    Permalink
  67. def utf8Encode: WithOut[Nothing, Any, Nothing, Any, Nothing, String, [Env]Env, [Err]Err, [Elem]Byte]

    Permalink

    utf*Encode pipelines adhere to the same behavior of Java's String#getBytes(charset), that is:

    utf*Encode pipelines adhere to the same behavior of Java's String#getBytes(charset), that is:

    • utf8: No BOM
    • utf16: Has BOM (the outlier)
    • utf16BE & utf16LE: No BOM
    • All utf32 variants: No BOM

    If BOM is required, users can use the *WithBomEncode variants. (As alluded above, utf16Encode always prepends BOM, just like getBytes("UTF-16") in Java. In fact, it is an alias to both utf16BEWithBomEncode and utf16WithBomEncode.

  68. def utf8WithBomEncode: WithOut[Nothing, Any, Nothing, Any, Nothing, String, [Env]Env, [Err]Err, [Elem]Byte]

    Permalink
  69. def utfDecode: WithOut[Nothing, Any, Nothing, Any, Nothing, Byte, [Env]Env, [Err]Err, [Elem]String]

    Permalink

    utfDecode determines the right encoder to use based on the Byte Order Mark (BOM).

    utfDecode determines the right encoder to use based on the Byte Order Mark (BOM). If it doesn't detect one, it defaults to utf8Decode. In the case of utf16 and utf32 without BOM, utf16Decode and utf32Decode should be used instead as both default to their own default decoder respectively.

  70. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  71. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  72. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped