All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.pics.profiler.PICSTokenizer

java.lang.Object
   |
   +----w3c.pics.profiler.PICSTokenizer

public class PICSTokenizer
extends Object
PICSTokenizer provides a high-level interface for parsing pics-service machine readable descriptions. It wraps the StreamTokenizer in java.io package to support convenient and customized parsing services.


Variable Index

 o bval
 o nval
 o nval2
 o option
 o sval
 o T_BOOLOPTION
 o T_CATEGORY
 o T_CLOSEPAREN
 o T_DEFAULT
 o T_ENDOFRANGE
 o T_ENUM
 o T_EXTENSION
 o T_MAX
 o T_MIN
 o T_OK
 o T_OPTIONPAIR
 o T_PAIR
 o vval

Constructor Index

 o PICSTokenizer(Reader)
Create a new PICSTokenizer

Method Index

 o checkVersion()
Checks the Version of the input.
 o firstParen()
 o getDefaultableOption()
 o nextAllowBlockValue()
 o nextCategoryOption()
 o nextEnumOption()
 o nextPair(String, int)
Parse the next pair in parentheses
 o nextRange()
 o nextRangeValue()
 o nextServiceOption()
 o nextTransmitas()

Variables

 o T_OK
 public static final int T_OK
 o T_OPTIONPAIR
 public static final int T_OPTIONPAIR
 o T_EXTENSION
 public static final int T_EXTENSION
 o T_MAX
 public static final int T_MAX
 o T_BOOLOPTION
 public static final int T_BOOLOPTION
 o T_PAIR
 public static final int T_PAIR
 o T_CATEGORY
 public static final int T_CATEGORY
 o T_ENUM
 public static final int T_ENUM
 o T_MIN
 public static final int T_MIN
 o T_DEFAULT
 public static final int T_DEFAULT
 o T_ENDOFRANGE
 public static final int T_ENDOFRANGE
 o T_CLOSEPAREN
 public static final int T_CLOSEPAREN
 o option
 public String option
 o sval
 public String sval
 o nval
 public double nval
 o nval2
 public double nval2
 o vval
 public Vector vval
 o bval
 public boolean bval

Constructors

 o PICSTokenizer
 public PICSTokenizer(Reader ins)
Create a new PICSTokenizer

Parameters:
ins - The InputStream to use.

Methods

 o checkVersion
 public void checkVersion() throws PICSException, IOException
Checks the Version of the input. Note: Currently, version 1.0 and 1.1 are accepted

Throws: PICSException
If the version is missing.
Throws: IOException
If there is an I/O error.
 o nextPair
 public int nextPair(String word,
                     int type) throws PICSException, IOException
Parse the next pair in parentheses

Parameters:
word - The next word.
type - The type.
Returns:
an int, representing the next pair.
Throws: PICSException
If there is a parsing error.
Throws: IOException
If there is an I/O error.
 o nextAllowBlockValue
 public Vector nextAllowBlockValue() throws PICSException, IOException
 o nextRangeValue
 public int nextRangeValue() throws PICSException, IOException
See Also:
Range
 o nextCategoryOption
 public int nextCategoryOption() throws PICSException, IOException
 o nextEnumOption
 public int nextEnumOption() throws PICSException, IOException
 o nextServiceOption
 public int nextServiceOption() throws PICSException, IOException
 o getDefaultableOption
 public int getDefaultableOption() throws PICSException, IOException
 o nextRange
 public int nextRange() throws PICSException, IOException
 o nextTransmitas
 public int nextTransmitas() throws PICSException, IOException
 o firstParen
 public void firstParen() throws PICSException, IOException

All Packages  Class Hierarchy  This Package  Previous  Next  Index