object ZPipeline extends ZPipelinePlatformSpecificConstructors
- Alphabetic
- By Inheritance
- ZPipeline
- ZPipelinePlatformSpecificConstructors
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply[In]: ZPipeline[Any, Nothing, In, In]
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)
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def branchAfter[Env, Err, In](n: => Int)(f: (Chunk[In]) => ZPipeline[Env, Err, In, In]): ZPipeline[Env, Err, In, In]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def collect[In, Out](f: PartialFunction[In, Out]): ZPipeline[Any, Nothing, In, Out]
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 }
- def dropUntil[In](f: (In) => Boolean): ZPipeline[Any, Nothing, In, In]
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)
- def dropWhile[In](f: (In) => Boolean): ZPipeline[Any, Nothing, In, In]
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)
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def filter[In](f: (In) => Boolean): ZPipeline[Any, Nothing, In, In]
Creates a pipeline that filters elements according to the specified predicate.
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def fromChannel[Env, Err, In, Out](channel: => ZChannel[Env, Nothing, Chunk[In], Any, Err, Chunk[Out], Any]): ZPipeline[Env, Err, In, Out]
Creates a pipeline that sends all the elements through the given channel.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def groupAdjacentBy[In, Key](f: (In) => Key): ZPipeline[Any, Nothing, In, (Key, NonEmptyChunk[In])]
Creates a pipeline that groups on adjacent keys, calculated by function f.
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def identity[In]: ZPipeline[Any, Nothing, In, In]
The identity pipeline, which does not modify streams in any way.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val iso_8859_1Decode: ZPipeline[Any, Nothing, Byte, String]
- val iso_8859_1Encode: ZPipeline[Any, Nothing, String, Byte]
- def map[In, Out](f: (In) => Out): ZPipeline[Any, Nothing, In, Out]
Creates a pipeline that maps elements with the specified function.
- def mapChunks[In, Out](f: (Chunk[In]) => Chunk[Out]): ZPipeline[Any, Nothing, In, Out]
Creates a pipeline that maps chunks of elements with the specified function.
- def mapChunksZIO[Env, Err, In, Out](f: (Chunk[In]) => ZIO[Env, Err, Chunk[Out]]): ZPipeline[Env, Err, In, Out]
Creates a pipeline that maps chunks of elements with the specified effect.
- def mapZIO[Env, Err, In, Out](f: (In) => ZIO[Env, Err, Out]): ZPipeline[Env, Err, In, Out]
Creates a pipeline that maps elements with the specified effectful function.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def prepend[In](values: => Chunk[In]): ZPipeline[Any, Nothing, In, In]
Emits the provided chunk before emitting any other value.
- def rechunk[In](n: => Int): ZPipeline[Any, Nothing, In, In]
A pipeline that rechunks the stream into chunks of the specified size.
- def scan[In, Out](s: => Out)(f: (Out, In) => Out): ZPipeline[Any, Nothing, In, Out]
Creates a pipeline that scans elements with the specified function.
- def scanZIO[Env, Err, In, Out](s: => Out)(f: (Out, In) => ZIO[Env, Err, Out]): ZPipeline[Env, Err, In, Out]
Creates a pipeline that scans elements with the specified function.
- val splitLines: ZPipeline[Any, Nothing, String, String]
Splits strings on newlines.
Splits strings on newlines. Handles both Windows newlines (
\r\n) and UNIX newlines (\n). - def splitOn(delimiter: => String): ZPipeline[Any, Nothing, String, String]
Splits strings on a delimiter.
- def splitOnChunk[In](delimiter: => Chunk[In]): ZPipeline[Any, Nothing, In, In]
Splits strings on a delimiter.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def take[In](n: => Long): ZPipeline[Any, Nothing, In, In]
Creates a pipeline that takes n elements.
- def takeUntil[In](f: (In) => Boolean): ZPipeline[Any, Nothing, In, In]
Creates a pipeline that takes elements until the specified predicate evaluates to true.
- def takeWhile[In](f: (In) => Boolean): ZPipeline[Any, Nothing, In, In]
Creates a pipeline that takes elements while the specified predicate evaluates to true.
- def toString(): String
- Definition Classes
- AnyRef → Any
- val usASCIIDecode: ZPipeline[Any, Nothing, Byte, String]
- val usASCIIEncode: ZPipeline[Any, Nothing, String, Byte]
- val utf16BEDecode: ZPipeline[Any, Nothing, Byte, String]
- val utf16BEEncode: ZPipeline[Any, Nothing, String, Byte]
- val utf16BEWithBomEncode: ZPipeline[Any, Nothing, String, Byte]
- val utf16Decode: ZPipeline[Any, Nothing, Byte, String]
- val utf16Encode: ZPipeline[Any, Nothing, String, Byte]
- val utf16LEDecode: ZPipeline[Any, Nothing, Byte, String]
- val utf16LEEncode: ZPipeline[Any, Nothing, String, Byte]
- val utf16LEWithBomEncode: ZPipeline[Any, Nothing, String, Byte]
- val utf16WithBomEncode: ZPipeline[Any, Nothing, String, Byte]
- val utf32BEDecode: ZPipeline[Any, Nothing, Byte, String]
- val utf32BEEncode: ZPipeline[Any, Nothing, String, Byte]
- val utf32BEWithBomEncode: ZPipeline[Any, Nothing, String, Byte]
- val utf32Decode: ZPipeline[Any, Nothing, Byte, String]
- val utf32Encode: ZPipeline[Any, Nothing, String, Byte]
- val utf32LEDecode: ZPipeline[Any, Nothing, Byte, String]
- val utf32LEEncode: ZPipeline[Any, Nothing, String, Byte]
- val utf32LEWithBomEncode: ZPipeline[Any, Nothing, String, Byte]
- val utf32WithBomEncode: ZPipeline[Any, Nothing, String, Byte]
- val utf8Decode: ZPipeline[Any, Nothing, Byte, String]
- val utf8Encode: ZPipeline[Any, Nothing, String, Byte]
utf*Encodepipelines adhere to the same behavior of Java's String#getBytes(charset), that is:utf*Encodepipelines 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
*WithBomEncodevariants. (As alluded above,utf16Encodealways prepends BOM, just likegetBytes("UTF-16")in Java. In fact, it is an alias to bothutf16BEWithBomEncodeandutf16WithBomEncode. - val utf8WithBomEncode: ZPipeline[Any, Nothing, String, Byte]
- val utfDecode: ZPipeline[Any, Nothing, Byte, String]
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,
utf16Decodeandutf32Decodeshould be used instead as both default to their own default decoder respectively. - final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()