Share via


ObjectOutputStream.Drain Method

Definition

Drain any buffered data in ObjectOutputStream.

[Android.Runtime.Register("drain", "()V", "GetDrainHandler")]
protected virtual void Drain ();
[<Android.Runtime.Register("drain", "()V", "GetDrainHandler")>]
abstract member Drain : unit -> unit
override this.Drain : unit -> unit
Attributes

Exceptions

if an error occurs while writing to the target stream.

Remarks

Drain any buffered data in ObjectOutputStream. Similar to flush but does not propagate the flush to the underlying stream.

Java documentation for java.io.ObjectOutputStream.drain().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to