ChunkedFileOutputStream

constructor(filesDir: File, chunkSize: Int, chunkNameGenerator: (Int) -> String = { id -> "chunk_$id" }, listener: ChunkedFileOutputStream.Listener = object : Listener {})

Parameters

filesDir

the directory where the files will be written

chunkSize

the size of each file in bytes

chunkNameGenerator

generate the name of each file from its index

listener

the listener that will be called when a file is created