FlowIOOps

ox.flow.FlowIOOps
trait FlowIOOps[+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 runToFile(path: Path)(using T <:< Chunk[Byte]): Unit

Writes content of this flow to a file.

Writes content of this flow to a file.

Value parameters

path

Path to the target file. If not exists, it will be created.

Attributes

def runToInputStream()(using T <:< Chunk[Byte])(using Ox, BufferCapacity): InputStream

Runs the flow into a java.io.InputStream.

Runs the flow into a java.io.InputStream.

Must be run within a concurrency scope, as under the hood the flow is run in the background.

Attributes

def runToOutputStream(outputStream: OutputStream)(using T <:< Chunk[Byte]): Unit

Writes content of this flow to an java.io.OutputStream.

Writes content of this flow to an java.io.OutputStream.

Value parameters

outputStream

Target OutputStream to write to. Will be closed after finishing the process or on error.

Attributes