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