StreamBase

abstract class StreamBase : DataValue

Abstract base class for streams.

See Also:

{@link com.sap.cloud.mobile.kotlin.odata.ByteStream}, {@link com.sap.cloud.mobile.kotlin.odata.CharStream}.

Inheritors

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open var entityTag: String?
Link copied to clipboard
open var fileName: String?
Link copied to clipboard
open var mediaType: String?

Functions

Link copied to clipboard
open fun check()

Check this stream (e.g. to see if I/O might have been cancelled). To avoid performance degradation, this function should be called infrequently.

Link copied to clipboard
open fun close()

Close this stream. Automatically calls {@link com.sap.cloud.mobile.kotlin.odata.StreamBase#flush() StreamBase.flush} before closing. This function can be safely called if the stream is already closed.

Link copied to clipboard
open fun flush()

Flush any buffered writes from this stream.