Plain

info.fingo.spata.io.Writer.Plain
final class Plain[F[_]] extends Writer[F]

Writer which executes I/O operations on current thread, without context (thread) shifting.

Type parameters

F

the effect type, with type class providing support for delayed execution (typically cats.effect.IO) and logging (provided internally by spata)

Attributes

Graph
Supertypes
trait Writer[F]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def write(fos: F[OutputStream])(using codec: Codec): (F, Char) => Unit

Writes CSV to destination OutputStream.

Writes CSV to destination OutputStream.

Attributes

def write(os: OutputStream)(using codec: Codec): (F, Char) => Unit

Writes CSV to destination OutputStream.

Writes CSV to destination OutputStream.

Attributes

def write(path: Path)(using codec: Codec): (F, Char) => Unit

Writes CSV to target path.

Writes CSV to target path.

Attributes

Inherited methods

def apply(csv: F[OutputStream])(using codec: Codec): (F, Char) => Unit

Alias for write method.

Alias for write method.

Value parameters

codec

codec used to convert bytes to characters, with default JVM charset as fallback

csv

the CSV data destination

Attributes

Returns

pipe converting stream of characters to empty one

Inherited from:
Writer
def apply[A : CSV](csv: A)(implicit evidence$1: CSV[A], codec: Codec): (F, Char) => Unit

Alias for various write methods.

Alias for various write methods.

Type parameters

A

type of target

Value parameters

codec

codec used to convert bytes to characters, with default JVM charset as fallback

csv

the CSV data destination

Attributes

Returns

pipe converting stream of characters to empty one

Inherited from:
Writer