Share via


Base64.Encoder.Wrap(Stream) Method

Definition

Wraps an output stream for encoding byte data using the Base64 encoding scheme.

[Android.Runtime.Register("wrap", "(Ljava/io/OutputStream;)Ljava/io/OutputStream;", "GetWrap_Ljava_io_OutputStream_Handler", ApiSince=26)]
public virtual System.IO.Stream Wrap (System.IO.Stream os);
[<Android.Runtime.Register("wrap", "(Ljava/io/OutputStream;)Ljava/io/OutputStream;", "GetWrap_Ljava_io_OutputStream_Handler", ApiSince=26)>]
abstract member Wrap : System.IO.Stream -> System.IO.Stream
override this.Wrap : System.IO.Stream -> System.IO.Stream

Parameters

os
Stream

the output stream.

Returns

the output stream for encoding the byte data into the specified Base64 encoded format

Attributes

Remarks

Wraps an output stream for encoding byte data using the Base64 encoding scheme.

It is recommended to promptly close the returned output stream after use, during which it will flush all possible leftover bytes to the underlying output stream. Closing the returned output stream will close the underlying output stream.

Java documentation for java.util.Base64.Encoder.wrap(java.io.OutputStream).

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