OutputStreamAdapter

The OutputStreamAdapter allows you to use a WritableDataProvider in APIs that expect an OutputStream. This uses a WritingStrategy to control how the data is passed over to the WritableDataProvider. Obtain an instance using the Builder.

Types

Link copied to clipboard
open class Builder
Creates instances of the OutputStreamAdapter.

Functions

Link copied to clipboard
open fun close()
Link copied to clipboard
Call this from your WritingStrategy once your done writing all data using writeToDataProvider
Link copied to clipboard
open fun write(@NonNull data: Array<Byte>)
open fun write(data: Int)
Link copied to clipboard
open fun writeToDataProvider(data: Array<Byte>)
Call this from your WritingStrategy to actually write to the .