Abstract base class for streams.
{@link com.sap.cloud.mobile.kotlin.odata.ByteStream}, {@link com.sap.cloud.mobile.kotlin.odata.CharStream}.
Check this stream (e.g. to see if I/O might have been cancelled). To avoid performance degradation, this function should be called infrequently.
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.
Flush any buffered writes from this stream.