gov.llnl.babel.url.cookie

Class Lexer


public class Lexer
extends java.lang.Object

A class to convert text from the value of a HTTP Set-Cookie2 to a stream of lexical tokens.

Constructor Summary

Lexer(Reader charSource)
Create a lexer and give provide it with a stream of characters.

Method Summary

Token
nextToken()
Find the next token.
static boolean
validTokenChar(char ch)
Return true iff ch is a valid character in a token.

Constructor Details

Lexer

public Lexer(Reader charSource)
Create a lexer and give provide it with a stream of characters.

Method Details

nextToken

public Token nextToken()
            throws java.io.IOException,
                   LexicalException
Find the next token.

validTokenChar

public static boolean validTokenChar(char ch)
Return true iff ch is a valid character in a token.
Parameters:
ch - the character to check
Returns:
true means ch is a valid character in a token