Language

InputStreamInvoker Class

Definition

Wraps a Java input stream as a .NET stream.

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

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
InputStreamInvoker(InputStream)

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

Properties

Name Description
BaseFileChannel

Gets the file channel used for seeking, if one is available.

BaseInputStream

Gets the underlying Java input stream.

CanRead

Gets a value that indicates whether this stream supports reading.

CanSeek

Gets a value that indicates whether a file channel is available for seeking.

CanWrite

Gets a value that indicates whether this stream supports writing.

Length

Gets the size reported by the underlying file channel.

Position

Gets or sets the position of the underlying file channel.

Methods

Name Description
Close()

Closes this stream and disposes the underlying Java input stream.

Dispose(Boolean)

Releases the underlying Java input stream when disposal is requested.

Flush()

Performs no operation.

FromJniHandle(IntPtr, JniHandleOwnership)

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

Read(Byte[], Int32, Int32)

Reads bytes from the underlying Java input stream.

Seek(Int64, SeekOrigin)

Sets the file channel's position relative to the selected origin. If no channel is available, throws NotSupportedException.

SetLength(Int64)

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

Write(Byte[], Int32, Int32)

Writing is not supported. This method always throws NotSupportedException.

Applies to