public Token next() throws IOException { if (tokens == null || index >= tokens.size()) { if (length == 0) refill(); while (!incrementTokenBuffer()) { refill(); if (length <= 0) // no more bytes to read; return null; } } return tokens.get(index++); }
public Token next() throws IOException { if (tokens == null || index >= tokens.size()) { if (length == 0) refill(); while (!incrementTokenBuffer()) { refill(); if (length <= 0) // no more bytes to read; return null; } } return tokens.get(index++); }