public final void yyreset ( java . io . Reader reader ) { zzBuffer = s . array ; zzStartRead = s . offset ; zzEndRead = zzStartRead + s . count - 1 ; zzCurrentPos = zzMarkedPos = s . offset ; zzLexicalState = YYINITIAL ; zzReader = reader ; zzAtEOF = false ; }
Resets the scanner to read from a new input stream . Does not close the old reader . All internal variables are reset , the old input stream < b > can not < /b > be reused ( internal buffer is discarded and lost ) . Lexical state is set to < tt > YY_INITIAL < /tt > .