NIST SIP Parser and Stack (v1.2) API

gov.nist.javax.sip.parser
Class Lexer

java.lang.Object
  |
  +--gov.nist.core.StringTokenizer
        |
        +--gov.nist.core.LexerCore
              |
              +--gov.nist.javax.sip.parser.Lexer

public class Lexer
extends LexerCore

Lexer class for the parser.

Version:
JAIN-SIP-1.1
Author:
M. Ranganathan
This code is in the public domain.

Field Summary
 
Fields inherited from class gov.nist.core.LexerCore
ALPHA, AND, AT, BACK_QUOTE, BACKSLASH, BAR, COLON, DIGIT, DOLLAR, DOT, DOUBLEQUOTE, END, EQUALS, EXCLAMATION, GREATER_THAN, HAT, HT, ID, L_CURLY, L_SQUARE_BRACKET, LESS_THAN, LPAREN, MINUS, NULL, PERCENT, PLUS, POUND, QUESTION, QUOTE, R_CURLY, R_SQUARE_BRACKET, RPAREN, SEMICOLON, SLASH, SP, STAR, START, TILDE, UNDERSCORE, WHITESPACE
 
Constructor Summary
Lexer(String lexerName, String buffer)
           
 
Method Summary
static String getHeaderName(String line)
          get the header name of the line
static String getHeaderValue(String line)
          get the header value of the line
 void selectLexer(String lexerName)
           
 
Methods inherited from class gov.nist.core.LexerCore
byteStringNoComma, byteStringNoSemicolon, charAsString, charAsString, comment, createParseException, getBuffer, getNextId, getNextToken, getPtr, getRest, getString, lookupToken, markInputPosition, match, number, peekNextId, peekNextToken, peekNextToken, quotedString, rewindInputPosition, SPorHT, startsId, ttoken, ttokenAllowSpace
 
Methods inherited from class gov.nist.core.StringTokenizer
consume, consume, getLine, getLines, getNextChar, getNextToken, getSDPFieldName, hasMoreChars, isAlpha, isDigit, isHexDigit, lookAhead, lookAhead, nextToken, peekLine
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Lexer

public Lexer(String lexerName,
             String buffer)
Method Detail

getHeaderName

public static String getHeaderName(String line)
get the header name of the line

Returns:
String

getHeaderValue

public static String getHeaderValue(String line)
get the header value of the line

Returns:
String

selectLexer

public void selectLexer(String lexerName)
Specified by:
selectLexer in class LexerCore

NIST SIP Parser and Stack (v1.2) API

A product of the NIST/ITL Advanced Networking Technologies Division.
See conditions of use.
Get the latest distribution.
Submit a bug report or feature request.