Creates a new scanner There is also a java.io.InputStream version of this
Enters a new lexical state
Returns the length of the matched text region.
Resumes scanning until the next regular expression is matched, the end of input
is encountered or an
Returns the current lexical state.
Refills the input buffer.
Reports an error that occured while scanning. In a wellformed scanner (no or
only correct usage of y