Language

OutputStreamInvoker Class

Definition

Wraps a Java output stream as a .NET stream.

public class OutputStreamInvoker : System.IO.Stream
type OutputStreamInvoker = class
    inherit Stream
Inheritance
OutputStreamInvoker

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.

Constructors

Name Description
OutputStreamInvoker(OutputStream)

Initializes a .NET stream wrapper for a Java output stream.

Properties

Name Description
BaseOutputStream

Gets the underlying Java output stream.

CanRead

Gets a value that indicates whether this stream supports reading.

CanSeek

Gets a value that indicates whether this stream supports seeking.

CanWrite

Gets a value that indicates whether this stream supports writing.

Length

Getting the length is not supported.

Position

Getting or setting the position is not supported.

Methods

Name Description
Close()

Closes this stream and disposes the underlying Java output stream.

Dispose(Boolean)

Releases the underlying Java output stream when disposal is requested.

Flush()

Calls Flush() on the underlying Java stream.

FromJniHandle(IntPtr, JniHandleOwnership)

Creates a .NET stream from a JNI reference to a Java output stream.

Read(Byte[], Int32, Int32)

Reading is not supported. This method always throws NotSupportedException.

Seek(Int64, SeekOrigin)

Seeking is not supported. This method always throws NotSupportedException.

SetLength(Int64)

Changing the length is not supported. This method always throws NotSupportedException.

Write(Byte[], Int32, Int32)

Writes part of an array to the underlying Java output stream.

Applies to