Java.Util.Scanner Members

The members of Java.Util.Scanner are listed below.

See Also: Inherited members from Java.Lang.Object

Public Constructors

Creates a Scanner with the specified File as input.
Creates a Scanner with the specified Readable as input.
Creates a Scanner with the specified ReadableByteChannel as input.
Creates a Scanner on the specified InputStream.
Creates a Scanner on the specified string.
Creates a Scanner with the specified File as input.
Creates a Scanner with the specified ReadableByteChannel as input.
Creates a Scanner on the specified InputStream.

Public Properties

[read-only]
HasNextbool. Returns whether this Scanner has one or more tokens remaining to parse.
[read-only]
HasNextBigDecimalbool. Returns whether the next token can be translated into a valid BigDecimal.
[read-only]
HasNextBigIntegerbool. Returns whether the next token can be translated into a valid BigInteger in the default radix.
[read-only]
HasNextBooleanbool. Returns whether the next token can be translated into a valid boolean value.
[read-only]
HasNextBytebool. Returns whether the next token can be translated into a valid byte value in the default radix.
[read-only]
HasNextDoublebool. Returns whether the next token translated into a valid double value.
[read-only]
HasNextFloatbool. Returns whether the next token can be translated into a valid float value.
[read-only]
HasNextIntbool. Returns whether the next token can be translated into a valid int value in the default radix.
[read-only]
HasNextLinebool. Returns true if there is a line terminator in the input.
[read-only]
HasNextLongbool. Returns whether the next token can be translated into a valid long value in the default radix.
[read-only]
HasNextShortbool. Returns whether the next token can be translated into a valid short value in the default radix.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

Close()
Closes this Scanner and the underlying input if the input implements Closeable.
Delimiter() : Java.Util.Regex.Pattern
Returns the delimiter Pattern in use by this Scanner.
FindInLine(Java.Util.Regex.Pattern) : string
Tries to find the pattern in the input.
FindInLine(string) : string
Compiles the pattern string and tries to find a substring matching it in the input data.
FindWithinHorizon(Java.Util.Regex.Pattern, int) : string
Tries to find the pattern in the input between the current position and the specified horizon.
FindWithinHorizon(string, int) : string
Tries to find the pattern in the input between the current position and the specified horizon.
InvokeHasNext(Java.Util.Regex.Pattern) : bool
Returns whether this Scanner has one or more tokens remaining to parse and the next token matches the given pattern.
InvokeHasNext(string) : bool
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.
InvokeHasNextBigInteger(int) : bool
Returns whether the next token can be translated into a valid BigInteger in the specified radix.
InvokeHasNextByte(int) : bool
Returns whether the next token can be translated into a valid byte value in the specified radix.
InvokeHasNextInt(int) : bool
Returns whether the next token can be translated into a valid int value in the specified radix.
InvokeHasNextLong(int) : bool
Returns whether the next token can be translated into a valid long value in the specified radix.
InvokeHasNextShort(int) : bool
Returns whether the next token can be translated into a valid short value in the specified radix.
IoException() : Java.IO.IOException
Returns the last IOException that was raised while reading from the underlying input, or null if none was thrown.
Locale() : Locale
Returns the Locale of this Scanner.
Match() : Java.Util.Regex.IMatchResult
Returns the result of the last matching operation.
Next() : string
Returns the next token.
Next(Java.Util.Regex.Pattern) : string
Returns the next token if it matches the specified pattern.
Next(string) : string
Returns the next token if it matches the specified pattern.
NextBigDecimal() : Java.Math.BigDecimal
Returns the next token as a BigDecimal.
NextBigInteger() : Java.Math.BigInteger
Returns the next token as a BigInteger in the current radix.
NextBigInteger(int) : Java.Math.BigInteger
Returns the next token as a BigInteger with the specified radix.
NextBoolean() : bool
Returns the next token as a boolean.
NextByte() : sbyte
Returns the next token as a byte in the current radix.
NextByte(int) : sbyte
Returns the next token as a byte with the specified radix.
NextDouble() : double
Returns the next token as a double.
NextFloat() : float
Returns the next token as a float.
NextInt() : int
Returns the next token as an int in the current radix.
NextInt(int) : int
Returns the next token as an int with the specified radix.
NextLine() : string
Returns the skipped input and advances the Scanner to the beginning of the next line.
NextLong() : long
Returns the next token as a long in the current radix.
NextLong(int) : long
Returns the next token as a long with the specified radix.
NextShort() : short
Returns the next token as a short in the current radix.
NextShort(int) : short
Returns the next token as a short with the specified radix.
Radix() : int
Return the radix of this Scanner.
Remove()
Remove is not a supported operation on Scanner.
Reset() : Scanner
Resets this scanner's delimiter, locale, and radix.
Skip(Java.Util.Regex.Pattern) : Scanner
Tries to use specified pattern to match input starting from the current position.
Skip(string) : Scanner
Tries to use the specified string to construct a pattern and then uses the constructed pattern to match input starting from the current position.
UseDelimiter(Java.Util.Regex.Pattern) : Scanner
Sets the delimiting pattern of this Scanner.
UseDelimiter(string) : Scanner
Sets the delimiting pattern of this Scanner with a pattern compiled from the supplied string value.
UseLocale(Locale) : Scanner
Sets the Locale of this Scanner to a specified Locale.
UseRadix(int) : Scanner
Sets the radix of this Scanner to the specified radix.

Explicitly Implemented Interface Members

Java.Util.IIterator.NextDocumentation for this section has not yet been entered.