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()
Type | Description |
---|---|
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
)
Name | Type | Description |
---|---|---|
processedBytes | Long | full size of current sent/read data |
stop
Stops reading/writing file after processing the current chunk.
public final void stop()