create

open fun create(file: File): DataSink

Create a DataSink instance that writes data to a file.

Return

a DataSink that will write to the given file.

Parameters

file

a file where the data will be written. Must not be null.

Throws

on a null file argument.