static Iterator < Token > tokenize ( ConfigOrigin origin , Reader input , ConfigSyntax flavor ) { return new TokenIterator ( origin , input , flavor != ConfigSyntax . JSON ) ; }
Tokenizes a Reader . Does not close the reader ; you have to arrange to do that after you re done with the returned iterator .