@Override
    public void characters(char[] ch, int start, int length)
            throws SAXException {
        if (shouldAppendToLangdetectContent()) {
            elementContent.append(ch, start, length);
        }
        for (int i = start; i < start + length; i++) {
            char c = ch[i];
            switch (c) {
                case ' ':
                case '\t':
                case '\r':
                case '\n':
                case '#':
                case '0':
                case '1':
                case '2':
                case '3':
                case '4':
                case '5':
                case '6':
                case '7':
                case '8':
                case '9':
                    continue;
                default:
                    if (shouldAppendToLangdetectContent()) {
                        nonWhitespaceCharacterCount++;
                    }
            }
        }
    }
@see nu.validator.checker.Checker#characters(char[], int, int)
src/nu/validator/checker/LanguageDetectingChecker.java