FlowCompanionIOOps

ox.flow.FlowCompanionIOOps

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Flow
Self type

Members list

Value members

Concrete methods

def fromFile(path: Path, chunkSize: Int): Flow[Chunk[Byte]]

Creates a flow that emits byte chunks read from a file.

Creates a flow that emits byte chunks read from a file.

Value parameters

chunkSize

maximum number of bytes to read from the file before emitting a new chunk.

path

path the file to read from.

Attributes

def fromInputStream(is: InputStream, chunkSize: Int): Flow[Chunk[Byte]]

Converts a java.io.InputStream into a Flow[Chunk[Bytes]].

Converts a java.io.InputStream into a Flow[Chunk[Bytes]].

Value parameters

chunkSize

maximum number of bytes to read from the underlying InputStream before emitting a new chunk.

is

an InputStream to read bytes from.

Attributes