Share via


Reader.Mark(Int32) Method

Definition

Marks the present position in the stream.

[Android.Runtime.Register("mark", "(I)V", "GetMark_IHandler")]
public virtual void Mark (int readAheadLimit);
[<Android.Runtime.Register("mark", "(I)V", "GetMark_IHandler")>]
abstract member Mark : int -> unit
override this.Mark : int -> unit

Parameters

readAheadLimit
Int32

Limit on the number of characters that may be read while still preserving the mark. After reading this many characters, attempting to reset the stream may fail.

Attributes

Exceptions

if readLimit .

if an error occurs while setting a mark in this reader.

Remarks

Marks the present position in the stream. Subsequent calls to reset() will attempt to reposition the stream to this point. Not all character-input streams support the mark() operation.

Java documentation for java.io.Reader.mark(int).

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

See also