Share via


JSONTokener.Next Method

Definition

Overloads

Next()

Returns the next available character, or the null character '\0' if all input has been exhausted.

Next(Char)

Returns the next available character if it equals c.

Next(Int32)

Returns the next length characters of the input.

Next()

Returns the next available character, or the null character '\0' if all input has been exhausted.

[Android.Runtime.Register("next", "()C", "GetNextHandler")]
public virtual char Next ();
[<Android.Runtime.Register("next", "()C", "GetNextHandler")>]
abstract member Next : unit -> char
override this.Next : unit -> char

Returns

Attributes

Remarks

Returns the next available character, or the null character '\0' if all input has been exhausted. The return value of this method is ambiguous for JSON strings that contain the character '\0'.

Java documentation for org.json.JSONTokener.next().

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

Next(Char)

Returns the next available character if it equals c.

[Android.Runtime.Register("next", "(C)C", "GetNext_CHandler")]
public virtual char Next (char c);
[<Android.Runtime.Register("next", "(C)C", "GetNext_CHandler")>]
abstract member Next : char -> char
override this.Next : char -> char

Parameters

c
Char

Returns

Attributes

Exceptions

Remarks

Returns the next available character if it equals c. Otherwise an exception is thrown.

Java documentation for org.json.JSONTokener.next(char).

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

Next(Int32)

Returns the next length characters of the input.

[Android.Runtime.Register("next", "(I)Ljava/lang/String;", "GetNext_IHandler")]
public virtual string? Next (int length);
[<Android.Runtime.Register("next", "(I)Ljava/lang/String;", "GetNext_IHandler")>]
abstract member Next : int -> string
override this.Next : int -> string

Parameters

length
Int32

Returns

Attributes

Exceptions

if the remaining input is not long enough to satisfy this request.

Remarks

Returns the next length characters of the input.

Java documentation for org.json.JSONTokener.next(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