Java.Util.Scanner: Method Members

The methods of Java.Util.Scanner are listed below. For a list of all members, see the Scanner Members list.

See Also: Inherited members from Java.Lang.Object

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.