Java.Util.Scanner.InvokeHasNext Method
Returns true if this Scanner has one or more tokens remaining to parse and the next token matches a pattern compiled from the given string.

Syntax

[Android.Runtime.Register("hasNext", "(Ljava/lang/String;)Z", "")]
public bool InvokeHasNext (string pattern)

Parameters

pattern
the string specifying the pattern to scan for

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalStateExceptionif the Scanner has been closed.

Remarks

Returns true if this Scanner has one or more tokens remaining to parse and the next token matches a pattern compiled from the given string. This method will block if the data is still being read. This call is equivalent to hasNext(Pattern.compile(pattern)).

[Android Documentation]

Requirements

Namespace: Java.Util
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1