OutputStream.Write OutputStream.Write Method

Definition

Overloads

Write(Byte[]) Write(Byte[])

Equivalent to write(buffer, 0, buffer.length).

Write(Int32) Write(Int32)

Writes a single byte to this stream.

Write(Byte[], Int32, Int32) Write(Byte[], Int32, Int32)

Writes count bytes from the byte array buffer starting at position offset to this stream.

Write(Byte[]) Write(Byte[])

Equivalent to write(buffer, 0, buffer.length).

[Android.Runtime.Register("write", "([B)V", "GetWrite_arrayBHandler")]
public virtual void Write (byte[] b);
abstract member Write : byte[] -> unit
override this.Write : byte[] -> unit

Parameters

b
Byte[]

Exceptions

Remarks

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.

Write(Int32) Write(Int32)

Writes a single byte to this stream.

[Android.Runtime.Register("write", "(I)V", "GetWrite_IHandler")]
public abstract void Write (int b);
abstract member Write : int -> unit

Parameters

Exceptions

if an error occurs while writing to this stream.

Remarks

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.

Write(Byte[], Int32, Int32) Write(Byte[], Int32, Int32)

Writes count bytes from the byte array buffer starting at position offset to this stream.

[Android.Runtime.Register("write", "([BII)V", "GetWrite_arrayBIIHandler")]
public virtual void Write (byte[] b, int off, int len);
abstract member Write : byte[] * int * int -> unit
override this.Write : byte[] * int * int -> unit

Parameters

b
Byte[]
off
Int32 Int32
len
Int32 Int32

Exceptions

if an error occurs while writing to this stream.

if offset or count , or if offset + count is bigger than the length of buffer.

Remarks

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