Java.Util.Scanner.Skip Method
Tries to use specified pattern to match input starting from the current position.

Syntax

[Android.Runtime.Register("skip", "(Ljava/util/regex/Pattern;)Ljava/util/Scanner;", "")]
public Scanner Skip (Java.Util.Regex.Pattern pattern)

Parameters

pattern
used to skip over input.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalStateExceptionif the Scanner is closed.
Java.Util.NoSuchElementExceptionif the specified pattern match fails.

Remarks

Tries to use specified pattern to match input starting from the current position. The delimiter will be ignored. If a match is found, the matched input will be skipped. If an anchored match of the specified pattern succeeds, the corresponding input will also be skipped. Otherwise, a NoSuchElementException will be thrown. Patterns that can match a lot of input may cause the Scanner to read in a large amount of input.

[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