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.
-
bval
-
-
nval
-
-
nval2
-
-
option
-
-
sval
-
-
T_BOOLOPTION
-
-
T_CATEGORY
-
-
T_CLOSEPAREN
-
-
T_DEFAULT
-
-
T_ENDOFRANGE
-
-
T_ENUM
-
-
T_EXTENSION
-
-
T_MAX
-
-
T_MIN
-
-
T_OK
-
-
T_OPTIONPAIR
-
-
T_PAIR
-
-
vval
-
-
PICSTokenizer(Reader)
- Create a new PICSTokenizer
-
checkVersion()
- Checks the Version of the input.
-
firstParen()
-
-
getDefaultableOption()
-
-
nextAllowBlockValue()
-
-
nextCategoryOption()
-
-
nextEnumOption()
-
-
nextPair(String, int)
- Parse the next pair in parentheses
-
nextRange()
-
-
nextRangeValue()
-
-
nextServiceOption()
-
-
nextTransmitas()
-
T_OK
public static final int T_OK
T_OPTIONPAIR
public static final int T_OPTIONPAIR
T_EXTENSION
public static final int T_EXTENSION
T_MAX
public static final int T_MAX
T_BOOLOPTION
public static final int T_BOOLOPTION
T_PAIR
public static final int T_PAIR
T_CATEGORY
public static final int T_CATEGORY
T_ENUM
public static final int T_ENUM
T_MIN
public static final int T_MIN
T_DEFAULT
public static final int T_DEFAULT
T_ENDOFRANGE
public static final int T_ENDOFRANGE
T_CLOSEPAREN
public static final int T_CLOSEPAREN
option
public String option
sval
public String sval
nval
public double nval
nval2
public double nval2
vval
public Vector vval
bval
public boolean bval
PICSTokenizer
public PICSTokenizer(Reader ins)
- Create a new PICSTokenizer
- Parameters:
- ins - The InputStream to use.
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.
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.
nextAllowBlockValue
public Vector nextAllowBlockValue() throws PICSException, IOException
nextRangeValue
public int nextRangeValue() throws PICSException, IOException
- See Also:
- Range
nextCategoryOption
public int nextCategoryOption() throws PICSException, IOException
nextEnumOption
public int nextEnumOption() throws PICSException, IOException
nextServiceOption
public int nextServiceOption() throws PICSException, IOException
getDefaultableOption
public int getDefaultableOption() throws PICSException, IOException
nextRange
public int nextRange() throws PICSException, IOException
nextTransmitas
public int nextTransmitas() throws PICSException, IOException
firstParen
public void firstParen() throws PICSException, IOException
All Packages Class Hierarchy This Package Previous Next Index