NIST SIP Parser and Stack (v1.2) API

gov.nist.core
Class StringTokenizer

java.lang.Object
  |
  +--gov.nist.core.StringTokenizer
Direct Known Subclasses:
LexerCore

public class StringTokenizer
extends Object

Base string token splitter.

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

Constructor Summary
StringTokenizer()
           
StringTokenizer(String buffer)
           
 
Method Summary
 void consume()
           
 void consume(int k)
           
 String getLine()
           
 Vector getLines()
          Get a Vector of the buffer tokenized by lines
 char getNextChar()
           
 String getNextToken(char delim)
          Get the next token from the buffer.
static String getSDPFieldName(String line)
          get the SDP field name of the line
 boolean hasMoreChars()
           
static boolean isAlpha(char ch)
           
static boolean isDigit(char ch)
           
static boolean isHexDigit(char ch)
           
 char lookAhead()
           
 char lookAhead(int k)
           
 String nextToken()
           
 String peekLine()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringTokenizer

public StringTokenizer()

StringTokenizer

public StringTokenizer(String buffer)
Method Detail

nextToken

public String nextToken()

hasMoreChars

public boolean hasMoreChars()

isHexDigit

public static boolean isHexDigit(char ch)

isAlpha

public static boolean isAlpha(char ch)

isDigit

public static boolean isDigit(char ch)

getLine

public String getLine()

peekLine

public String peekLine()

lookAhead

public char lookAhead()
               throws ParseException
ParseException

lookAhead

public char lookAhead(int k)
               throws ParseException
ParseException

getNextChar

public char getNextChar()
                 throws ParseException
ParseException

consume

public void consume()

consume

public void consume(int k)

getLines

public Vector getLines()
Get a Vector of the buffer tokenized by lines


getNextToken

public String getNextToken(char delim)
                    throws ParseException
Get the next token from the buffer.

ParseException

getSDPFieldName

public static String getSDPFieldName(String line)
get the SDP field name of the line

Returns:
String

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.