Java.Util.Scanner.Next Method
Returns the next token if it matches the specified pattern.

Syntax

[Android.Runtime.Register("next", "(Ljava/util/regex/Pattern;)Ljava/lang/String;", "")]
public string Next (Java.Util.Regex.Pattern pattern)

Parameters

pattern
the specified pattern to scan.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalStateExceptionif this Scanner has been closed.
Java.Util.NoSuchElementExceptionif input has been exhausted.
Java.Util.InputMismatchExceptionif the next token does not match the pattern given.

Remarks

Returns the next token if it matches the specified pattern. The token will be both prefixed and suffixed by the delimiter that is currently being used (or a string that matches the delimiter pattern). This method will block if input is being read.

[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