Token next() throws ScanException {
        text = null;
        switch (c) {
            case '\n':
                return EOL;
            case ' ':
            case '\t':
                return whiteSpace();
            case ',':
                nextChar();
                return COMMA;
            case '/':
                nextChar();
                return SLASH;
            case '<':
                nextChar();
                return LESS;
            case '>':
                nextChar();
                return MORE;
            case '=':
                nextChar();
                return EQUALS;
            case '!':
                return pipe();
            case '"':
                return quotedText('"');
            case '\'':
                return quotedText('\'');
            default:
                return name();
        }

    }
Token next ( ) throws ScanException { text = null ; switch ( c ) { case '\n' : return EOL ; case ' ' : case '\t' : return whiteSpace ( ) ; case ',' : nextChar ( ) ; return COMMA ; case '/' : nextChar ( ) ; return SLASH ; case '<' : nextChar ( ) ; return LESS ; case '>' : nextChar ( ) ; return MORE ; case '=' : nextChar ( ) ; return EQUALS ; case '!' : return pipe ( ) ; case '"' : return quotedText ( '"' ) ; case '\'' : return quotedText ( '\'' ) ; default : return name ( ) ; } }
return the next token from the text