FlowTextOps

ox.flow.FlowTextOps
trait FlowTextOps[+T]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Flow[T]
Self type
Flow[T]

Members list

Value members

Concrete methods

def decodeStringUtf8(using T <:< Chunk[Byte]): Flow[String]

Decodes a stream of chunks of bytes into UTF-8 Strings. This function is able to handle UTF-8 characters encoded on multiple bytes that are split across chunks.

Decodes a stream of chunks of bytes into UTF-8 Strings. This function is able to handle UTF-8 characters encoded on multiple bytes that are split across chunks.

Attributes

Returns

a flow of Strings decoded from incoming bytes.

def encodeUtf8(using T <:< String): Flow[Chunk[Byte]]

Encodes a flow of String in to a flow of bytes using UTF-8.

Encodes a flow of String in to a flow of bytes using UTF-8.

Attributes

def lines(charset: Charset)(using T <:< Chunk[Byte]): Flow[String]

Transforms a flow of byte chunks such that each emitted String is a text line from the input.

Transforms a flow of byte chunks such that each emitted String is a text line from the input.

Value parameters

charset

the charset to use for decoding the bytes into text.

Attributes

Returns

a flow emitting lines read from the input byte chunks, assuming they represent text.

def linesUtf8(using T <:< Chunk[Byte]): Flow[String]

Transforms a flow of byte chunks such that each emitted String is a text line from the input decoded using UTF-8 charset.

Transforms a flow of byte chunks such that each emitted String is a text line from the input decoded using UTF-8 charset.

Attributes

Returns

a flow emitting lines read from the input byte chunks, assuming they represent text.