object text
Provides utilities for working with streams of text (e.g., encoding byte streams to strings).
- Source
- text.scala
- Alphabetic
- By Inheritance
- text
- 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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def base64Decode[F[_]](alphabet: Base64Alphabet)(implicit arg0: RaiseThrowable[F]): Pipe[F, String, Byte]
Like base64Decode but takes a base 64 alphabet.
Like base64Decode but takes a base 64 alphabet. For example,
base64Decode(Bases.Alphabets.Base64Url)
will decode URL compatible base 64. - def base64Decode[F[_]](implicit arg0: RaiseThrowable[F]): Pipe[F, String, Byte]
Converts a stream of base 64 text in to a stream of bytes.
Converts a stream of base 64 text in to a stream of bytes.
If the text is not valid base 64, the pipe fails with an exception. Padding characters at the end of the input stream are optional, but if present, must be valid per the base 64 specification. Whitespace characters are ignored.
The default base 64 alphabet is used by this pipe.
- def base64Encode[F[_]](alphabet: Base64Alphabet): Pipe[F, Byte, String]
Like base64Encode but takes a base 64 alphabet.
Like base64Encode but takes a base 64 alphabet. For example,
base64Encode(Bases.Alphabets.Base64Url)
will encode URL compatible base 64. - def base64Encode[F[_]]: Pipe[F, Byte, String]
Encodes a byte stream in to a stream of base 64 text.
Encodes a byte stream in to a stream of base 64 text. The default base 64 alphabet is used by this pipe.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def encode[F[_]](charset: Charset): Pipe[F, String, Byte]
Encodes a stream of
String
in to a stream of bytes using the given charset. - def encodeC[F[_]](charset: Charset): Pipe[F, String, Chunk[Byte]]
Encodes a stream of
String
in to a stream ofChunk[Byte]
using the given charset. - final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def lines[F[_]]: Pipe[F, String, String]
Transforms a stream of
String
such that each emittedString
is a line from the input. - final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def utf8Decode[F[_]]: Pipe[F, Byte, String]
Converts UTF-8 encoded byte stream to a stream of
String
. - def utf8DecodeC[F[_]]: Pipe[F, Chunk[Byte], String]
Converts UTF-8 encoded
Chunk[Byte]
inputs toString
. - def utf8Encode[F[_]]: Pipe[F, String, Byte]
Encodes a stream of
String
in to a stream of bytes using the UTF-8 charset. - def utf8EncodeC[F[_]]: Pipe[F, String, Chunk[Byte]]
Encodes a stream of
String
in to a stream ofChunk[Byte]
using the UTF-8 charset. - 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])