Plain
Reader 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)
Value parameters
- chunkSize
-
size of data chunk
Attributes
- Graph
-
- Supertypes
Members list
Value members
Concrete methods
Reads a CSV source and returns a stream of character.
Reads a CSV source and returns a stream of character.
The caller of this function is responsible for proper resource acquisition and release. This may be done with fs2.Stream.bracket.
Character encoding has to be handled while creating scala.io.Source.
Attributes
Reads a CSV source and returns a stream of character.
Reads a CSV source and returns a stream of character.
Attributes
Reads a CSV source and returns a stream of character.
Reads a CSV source and returns a stream of character.
Attributes
Inherited methods
Pipe converting stream with CSV source to stream of characters.
Pipe converting stream with CSV source to stream of characters.
Type parameters
- A
-
type of source
Value parameters
- codec
-
codec used to convert bytes to characters, with default JVM charset as fallback
Attributes
- Returns
-
a pipe to converter CSV source into scala.Chars
- Example
-
val stream = Stream .bracket(IO(Source.fromFile("input.csv")))(source => IO(source.close())) .through(Reader[IO].by) - Inherited from:
- Reader
Concrete fields
Size of data chunk loaded at once when reading from source. See also FS2 Chunks.