Channels Class

Definition

Utility methods for channels and streams.

[Android.Runtime.Register("java/nio/channels/Channels", DoNotGenerateAcw=true)]
public sealed class Channels : Java.Lang.Object
[<Android.Runtime.Register("java/nio/channels/Channels", DoNotGenerateAcw=true)>]
type Channels = class
    inherit Object
Inheritance
Channels
Attributes

Remarks

Utility methods for channels and streams.

This class defines static methods that support the interoperation of the stream classes of the java.io package with the channel classes of this package.

Added in 1.4.

Java documentation for java.nio.channels.Channels.

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.

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
Handle

The handle to the underlying Android instance.

(Inherited from Object)
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
PeerReference (Inherited from Object)
ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)
ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)

Methods

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
NewInputStream(IAsynchronousByteChannel)

Constructs a stream that reads bytes from the given channel.

NewInputStream(IReadableByteChannel)

Constructs a stream that reads bytes from the given channel.

NewOutputStream(IAsynchronousByteChannel)

Constructs a stream that writes bytes to the given channel.

NewOutputStream(IWritableByteChannel)

Constructs a stream that writes bytes to the given channel.

NewReadableChannel(Stream)

Constructs a channel that reads bytes from the given stream.

NewReader(IReadableByteChannel, Charset)

Constructs a reader that decodes bytes from the given channel according to the given charset.

NewReader(IReadableByteChannel, CharsetDecoder, Int32)

Constructs a reader that decodes bytes from the given channel using the given decoder.

NewReader(IReadableByteChannel, String)

Constructs a reader that decodes bytes from the given channel according to the named charset.

NewWritableChannel(Stream)

Constructs a channel that writes bytes to the given stream.

NewWriter(IWritableByteChannel, Charset)

Constructs a writer that encodes characters according to the given charset and writes the resulting bytes to the given channel.

NewWriter(IWritableByteChannel, CharsetEncoder, Int32)

Constructs a writer that encodes characters using the given encoder and writes the resulting bytes to the given channel.

NewWriter(IWritableByteChannel, String)

Constructs a writer that encodes characters according to the named charset and writes the resulting bytes to the given channel.

Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to