Aracılığıyla paylaş


IReadable.Read(CharBuffer) Method

Definition

Attempts to read characters into the specified character buffer.

[Android.Runtime.Register("read", "(Ljava/nio/CharBuffer;)I", "GetRead_Ljava_nio_CharBuffer_Handler:Java.Lang.IReadableInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public int Read (Java.Nio.CharBuffer? cb);
[<Android.Runtime.Register("read", "(Ljava/nio/CharBuffer;)I", "GetRead_Ljava_nio_CharBuffer_Handler:Java.Lang.IReadableInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Read : Java.Nio.CharBuffer -> int

Parameters

cb
CharBuffer

the buffer to read characters into

Returns

The number of char values added to the buffer, or -1 if this source of characters is at its end

Attributes

Exceptions

if an I/O error occurs.

Remarks

Attempts to read characters into the specified character buffer. The buffer is used as a repository of characters as-is: the only changes made are the results of a put operation. No flipping or rewinding of the buffer is performed.

Java documentation for java.lang.Readable.read(java.nio.CharBuffer).

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