Java.Util.Scanner.FindInLine Method
Tries to find the pattern in the input.

Syntax

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

Parameters

pattern
the pattern to find in the input.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalStateExceptionif the Scanner is closed.

Remarks

Tries to find the pattern in the input. Delimiters are ignored. If the pattern is found before line terminator, the matched string will be returned, and the Scanner will advance to the end of the matched string. Otherwise, null will be returned and the Scanner will not advance. When waiting for input, the Scanner may be blocked. All the input may be cached if no line terminator exists in the buffer.

[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