PartFactory

class PartFactory(val key: String, val fileNumber: Long)

Generates part w/ metadata for a multi-part upload for a given key and file no. parts are 1-indexed. For convenience, empty parts are tolerated but not counted by the assembler.

Not thread-safe. It is expected that the parts are generated in order.

Constructors

Link copied to clipboard
constructor(key: String, fileNumber: Long)

Properties

Link copied to clipboard
Link copied to clipboard
val key: String
Link copied to clipboard

Functions

Link copied to clipboard
fun nextPart(bytes: ByteArray?, isFinal: Boolean = false): Part