Object/Class

zio.stream

ZPipeline

Related Docs: class ZPipeline | package stream

Permalink

object ZPipeline extends ZPipelinePlatformSpecificConstructors

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

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. def apply[In](implicit trace: Trace): ZPipeline[Any, Nothing, In, In]

    Permalink

    A shorter version of ZPipeline.identity, which can facilitate more compact definition of pipelines.

    A shorter version of ZPipeline.identity, which can facilitate more compact definition of pipelines.

    ZPipeline[Int] >>> ZPipeline.filter(_ % 2 != 0)
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def branchAfter[Env, Err, In, Out](n: ⇒ Int)(f: (Chunk[In]) ⇒ ZPipeline[Env, Err, In, Out])(implicit trace: Trace): ZPipeline[Env, Err, In, Out]

    Permalink

    A dynamic pipeline that first collects n elements from the stream, then creates another pipeline with the function f and sends all the following elements through that.

  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def collect[In, Out](f: PartialFunction[In, Out])(implicit trace: Trace): ZPipeline[Any, Nothing, In, 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 }
  9. def decodeCharsWith(charset: ⇒ Charset, bufSize: ⇒ Int = 4096)(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, Byte, Char]

    Permalink

    Creates a pipeline that decodes a stream of bytes into a stream of characters using the given charset

  10. def decodeStringWith(charset: ⇒ Charset)(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, Byte, String]

    Permalink

    Creates a pipeline that decodes a stream of bytes into a stream of strings using the given charset

  11. def drop[In](n: ⇒ Int)(implicit trace: Trace): ZPipeline[Any, Nothing, In, In]

    Permalink

    Creates a pipeline that drops n elements.

  12. def dropUntil[In](f: (In) ⇒ Boolean)(implicit trace: Trace): ZPipeline[Any, Nothing, In, In]

    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)
  13. def dropWhile[In](f: (In) ⇒ Boolean)(implicit trace: Trace): ZPipeline[Any, Nothing, In, In]

    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)
  14. def encodeCharsWith(charset: ⇒ Charset, bufferSize: ⇒ Int = 4096)(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, Char, Byte]

    Permalink

    Creates a pipeline that converts a stream of characters into a stream of bytes using the given charset

  15. def encodeStringWith(charset: ⇒ Charset, bom: ⇒ Chunk[Byte] = Chunk.empty)(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, String, Byte]

    Permalink

    Creates a pipeline that converts a stream of strings into a stream of bytes using the given charset

  16. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  18. def filter[In](f: (In) ⇒ Boolean)(implicit trace: Trace): ZPipeline[Any, Nothing, In, In]

    Permalink

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

  19. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def fromChannel[Env, Err, In, Out](channel: ⇒ ZChannel[Env, Nothing, Chunk[In], Any, Err, Chunk[Out], Any]): ZPipeline[Env, Err, In, Out]

    Permalink

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

  21. def fromPush[Env, Err, In, Out](push: ⇒ ZIO[Scope with Env, Nothing, (Option[Chunk[In]]) ⇒ ZIO[Env, Err, Chunk[Out]]])(implicit trace: Trace): ZPipeline[Env, Err, In, Out]

    Permalink

    Creates a pipeline from a chunk processing function.

  22. def fromSink[Env, Err, In, Out](sink: ⇒ ZSink[Env, Err, In, In, Out])(implicit trace: Trace): ZPipeline[Env, Err, In, Out]

    Permalink

    Creates a pipeline that repeatedly sends all elements through the given sink.

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

    Permalink
    Definition Classes
    AnyRef → Any
  24. def groupAdjacentBy[In, Key](f: (In) ⇒ Key)(implicit trace: Trace): ZPipeline[Any, Nothing, In, (Key, NonEmptyChunk[In])]

    Permalink

    Creates a pipeline that groups on adjacent keys, calculated by function f.

  25. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  26. def identity[In](implicit trace: Trace): ZPipeline[Any, Nothing, In, In]

    Permalink

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

  27. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  28. def iso_8859_1Decode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, Byte, String]

    Permalink

    Creates a pipeline that converts a stream of bytes into a stream of strings using the ISO_8859_1 charset

  29. def iso_8859_1Encode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, String, Byte]

    Permalink

    Creates a pipeline that converts a stream of strings into a stream of bytes using the ISO_8859_1 charset

  30. def map[In, Out](f: (In) ⇒ Out)(implicit trace: Trace): ZPipeline[Any, Nothing, In, Out]

    Permalink

    Creates a pipeline that maps elements with the specified function.

  31. def mapAccum[In, State, Out](s: ⇒ State)(f: (State, In) ⇒ (State, Out))(implicit trace: Trace): ZPipeline[Any, Nothing, In, Out]

    Permalink

    Creates a pipeline that statefully maps elements with the specified function.

  32. def mapAccumZIO[Env, Err, In, State, Out](s: ⇒ State)(f: (State, In) ⇒ ZIO[Env, Err, (State, Out)])(implicit trace: Trace): ZPipeline[Env, Err, In, Out]

    Permalink

    Creates a pipeline that statefully maps elements with the specified effect.

  33. def mapChunks[In, Out](f: (Chunk[In]) ⇒ Chunk[Out])(implicit trace: Trace): ZPipeline[Any, Nothing, In, Out]

    Permalink

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

  34. def mapChunksZIO[Env, Err, In, Out](f: (Chunk[In]) ⇒ ZIO[Env, Err, Chunk[Out]])(implicit trace: Trace): ZPipeline[Env, Err, In, Out]

    Permalink

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

  35. def mapZIO[Env, Err, In, Out](f: (In) ⇒ ZIO[Env, Err, Out])(implicit trace: Trace): ZPipeline[Env, Err, In, Out]

    Permalink

    Creates a pipeline that maps elements with the specified effectful function.

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

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

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

    Permalink
    Definition Classes
    AnyRef
  39. def prepend[In](values: ⇒ Chunk[In])(implicit trace: Trace): ZPipeline[Any, Nothing, In, In]

    Permalink

    Emits the provided chunk before emitting any other value.

  40. def rechunk[In](n: ⇒ Int)(implicit trace: Trace): ZPipeline[Any, Nothing, In, In]

    Permalink

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

  41. def scan[In, Out](s: ⇒ Out)(f: (Out, In) ⇒ Out)(implicit trace: Trace): ZPipeline[Any, Nothing, In, Out]

    Permalink

    Creates a pipeline that scans elements with the specified function.

  42. def scanZIO[Env, Err, In, Out](s: ⇒ Out)(f: (Out, In) ⇒ ZIO[Env, Err, Out])(implicit trace: Trace): ZPipeline[Env, Err, In, Out]

    Permalink

    Creates a pipeline that scans elements with the specified function.

  43. def splitLines(implicit trace: Trace): ZPipeline[Any, Nothing, String, String]

    Permalink

    Splits strings on newlines.

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

  44. def splitOn(delimiter: ⇒ String)(implicit trace: Trace): ZPipeline[Any, Nothing, String, String]

    Permalink

    Splits strings on a delimiter.

  45. def splitOnChunk[In](delimiter: ⇒ Chunk[In])(implicit trace: Trace): ZPipeline[Any, Nothing, In, In]

    Permalink

    Splits strings on a delimiter.

  46. def suspend[Env, Err, In, Out](pipeline: ⇒ ZPipeline[Env, Err, In, Out]): ZPipeline[Env, Err, In, Out]

    Permalink

    Lazily constructs a pipeline.

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

    Permalink
    Definition Classes
    AnyRef
  48. def take[In](n: ⇒ Long)(implicit trace: Trace): ZPipeline[Any, Nothing, In, In]

    Permalink

    Creates a pipeline that takes n elements.

  49. def takeUntil[In](f: (In) ⇒ Boolean)(implicit trace: Trace): ZPipeline[Any, Nothing, In, In]

    Permalink

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

  50. def takeWhile[In](f: (In) ⇒ Boolean)(implicit trace: Trace): ZPipeline[Any, Nothing, In, In]

    Permalink

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

  51. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  52. def usASCIIDecode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, Byte, String]

    Permalink

    Creates a pipeline that converts a stream of bytes into a stream of strings using the US ASCII charset

  53. def usASCIIEncode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, String, Byte]

    Permalink

    Creates a pipeline that converts a stream of strings into a stream of bytes using the US ASCII charset

  54. def utf16BEDecode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, Byte, String]

    Permalink

    Creates a pipeline that converts a stream of bytes into a stream of strings using the UTF_16BE charset

  55. def utf16BEEncode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, String, Byte]

    Permalink

    Creates a pipeline that converts a stream of strings into a stream of bytes using the UTF_16BE charset, without adding a BOM

  56. def utf16BEWithBomEncode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, String, Byte]

    Permalink

    Creates a pipeline that converts a stream of strings into a stream of bytes using the UTF_16BE charset prefixing it with a BOM

  57. def utf16Decode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, Byte, String]

    Permalink

    Creates a pipeline that converts a stream of bytes into a stream of strings using the UTF_16 charset

  58. def utf16Encode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, String, Byte]

    Permalink

    Creates a pipeline that converts a stream of strings into a stream of bytes using the UTF_16BE charset prefixing it with a BOM

  59. def utf16LEDecode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, Byte, String]

    Permalink

    Creates a pipeline that converts a stream of bytes into a stream of strings using the UTF_16LE charset

  60. def utf16LEEncode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, String, Byte]

    Permalink

    Creates a pipeline that converts a stream of strings into a stream of bytes using the UTF_16LE charset, without adding a BOM

  61. def utf16LEWithBomEncode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, String, Byte]

    Permalink

    Creates a pipeline that converts a stream of strings into a stream of bytes using the UTF_16LE charset prefixing it with a BOM

  62. def utf16WithBomEncode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, String, Byte]

    Permalink

    Creates a pipeline that converts a stream of strings into a stream of bytes using the UTF_16 charset prefixing it with a BOM

  63. def utf32BEDecode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, Byte, String]

    Permalink

    Creates a pipeline that converts a stream of bytes into a stream of strings using the UTF_32BE charset

  64. def utf32BEEncode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, String, Byte]

    Permalink

    Creates a pipeline that converts a stream of strings into a stream of bytes using the UTF_32BE charset, without adding a BOM

  65. def utf32BEWithBomEncode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, String, Byte]

    Permalink

    Creates a pipeline that converts a stream of strings into a stream of bytes using the UTF_32BE charset prefixing it with a BOM

  66. def utf32Decode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, Byte, String]

    Permalink

    Creates a pipeline that converts a stream of bytes into a stream of strings using the UTF_32 charset

  67. def utf32Encode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, String, Byte]

    Permalink

    Creates a pipeline that converts a stream of strings into a stream of bytes using the UTF_32BE charset, without adding a BOM

  68. def utf32LEDecode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, Byte, String]

    Permalink

    Creates a pipeline that converts a stream of bytes into a stream of strings using the UTF_32LE charset

  69. def utf32LEEncode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, String, Byte]

    Permalink

    Creates a pipeline that converts a stream of strings into a stream of bytes using the UTF_32LE charset, without adding a BOM

  70. def utf32LEWithBomEncode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, String, Byte]

    Permalink

    Creates a pipeline that converts a stream of strings into a stream of bytes using the UTF_32LE charset prefixing it with a BOM

  71. def utf32WithBomEncode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, String, Byte]

    Permalink

    Creates a pipeline that converts a stream of strings into a stream of bytes using the UTF_32BE charset prefixing it with a BOM

  72. def utf8Decode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, Byte, String]

    Permalink

    Creates a pipeline that converts a stream of bytes into a stream of strings using the UTF_8 charset

  73. def utf8Encode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, String, Byte]

    Permalink

    Creates a pipeline that converts a stream of strings into a stream of bytes using the UTF_8 charset, without adding a BOM

  74. def utf8WithBomEncode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, String, Byte]

    Permalink

    Creates a pipeline that converts a stream of strings into a stream of bytes using the UTF_8 charset prefixing it with a BOM

  75. def utfDecode(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, Byte, 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.

  76. final def wait(): Unit

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

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

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

Inherited from ZPipelinePlatformSpecificConstructors

Inherited from AnyRef

Inherited from Any

Ungrouped