private void endToken(final int tokenEnd) {
            if (token != null && tokenStart >= 0 && tokenStart <= tokenEnd) {
                foundTokens.add(new TokenData(tokenStart, tokenEnd, token));
                token = null;
                tokenStart = -1;
            }
        }
Appender which scans and tokenizes certain HTML tokens (for later formatting)
main/src/main/java/cgeo/geocaching/utils/html/HtmlUtils.java