다음을 통해 공유


Scanner.Skip Method

Definition

Overloads

Skip(Pattern)

Skips input that matches the specified pattern, ignoring delimiters.

Skip(String)

Skips input that matches a pattern constructed from the specified string.

Skip(Pattern)

Skips input that matches the specified pattern, ignoring delimiters.

[Android.Runtime.Register("skip", "(Ljava/util/regex/Pattern;)Ljava/util/Scanner;", "")]
public Java.Util.Scanner? Skip (Java.Util.Regex.Pattern? pattern);
[<Android.Runtime.Register("skip", "(Ljava/util/regex/Pattern;)Ljava/util/Scanner;", "")>]
member this.Skip : Java.Util.Regex.Pattern -> Java.Util.Scanner

Parameters

pattern
Pattern

a string specifying the pattern to skip over

Returns

this scanner

Attributes

Exceptions

if the Scanner is closed.

if the specified pattern match fails.

Remarks

Java documentation for java.util.Scanner.skip(java.util.regex.Pattern).

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

Skip(String)

Skips input that matches a pattern constructed from the specified string.

[Android.Runtime.Register("skip", "(Ljava/lang/String;)Ljava/util/Scanner;", "")]
public Java.Util.Scanner? Skip (string? pattern);
[<Android.Runtime.Register("skip", "(Ljava/lang/String;)Ljava/util/Scanner;", "")>]
member this.Skip : string -> Java.Util.Scanner

Parameters

pattern
String

a string specifying the pattern to skip over

Returns

this scanner

Attributes

Exceptions

if the Scanner is closed.

Remarks

Java documentation for java.util.Scanner.skip(java.lang.String).

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