flavors.java.Scanner Class
Allocates a new Scanner for Java format specifiers.
Constructor
flavors.java.Scanner
(
Scanner
-
input
Parameters:
-
inputString | ArrayString or character array to be scanned
Returns:
Scanner:
New Scanner instance
Methods
err
(
-
hint
Throws an error using the given hint for the error message. The error message includes the relevant input substring, the index of the error prone character within the input, and the given hint.
Parameters:
-
hintStringTo be included in the error message
hasNext
()
Boolean
Returns true if it's possible to scan another token, false otherwise.
Returns:
Boolean:
input
(
Scanner | Array
chainable
-
[input]
Sets or returns this Scanner's input.
Parameters:
-
[input]String | Array optionalString or character array to be scanned
Returns:
Scanner | Array:
This Scanner if called as setter, this Scanner's
current input if called as getter.
next
()
Object
Returns the next token or undefined if there is no more text to scan.
Returns:
Object:
reset
()
Scanner
chainable
Resets this Scanner's state.
Returns:
Scanner:
