gov.llnl.babel.url.cookie
Class Lexer

java.lang.Object
  extended by gov.llnl.babel.url.cookie.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(java.io.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Lexer

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

Method Detail

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

nextToken

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

Throws:
java.io.IOException - If the character source issues an IOException, you will know.
LexicalException