Skip to main content
reference

Controller

Manages sending/reading files using InputStream/OutputStream.

Constructors

Controller

Creates instance of Controller.

public void Controller()

Methods

isStopped

Returns information whether the stream should be stopped.

public final boolean isStopped()

TypeDescription
boolean `true` if controller is set to stop

onChunkProcessed

Override this method to handle event when each chunk was sent successfully.

public void onChunkProcessed(
Long processedBytes
)

NameTypeDescription
processedBytesLongfull size of current sent/read data

stop

Stops reading/writing file after processing the current chunk.

public final void stop()