Java.Lang.IReadable.Read Method

Reads characters into the specified CharBuffer.

Syntax

[Android.Runtime.Register("read", "(Ljava/nio/CharBuffer;)I", "GetRead_Ljava_nio_CharBuffer_Handler:Java.Lang.IReadableInvoker, Mono.Android, Version=0.0.0")]
public int Read (Java.Nio.CharBuffer cb)

Parameters

cb
the buffer to be filled with characters read.

Returns

  • the number of characters actually read, or -1 if this Readable reaches its end

Exceptions

TypeReason
Java.IO.IOExceptionif an I/O error occurs.

Remarks

Reads characters into the specified CharBuffer. The maximum number of characters read is CharBuffer.remaining().

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: API Level 1