All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class BrainWave.PatternSetParser

java.lang.Object
   |
   +----BrainWave.PatternSetParser

public class PatternSetParser
extends Object

Variable Index

 o reader
 o streamTokenizer

Constructor Index

 o PatternSetParser()

Method Index

 o checkPatternSet(Vector)
Checks the pattern set vector to make sure it is consistent, i.e.
 o readPatternSet()
Reads the from the java.io.Reader that is set and parses the information into a Vector that contiains Patterns.
 o setReader(Reader)
Prepares the parser to read from a Reader.

Variables

 o reader
 protected Reader reader
 o streamTokenizer
 protected StreamTokenizer streamTokenizer

Constructors

 o PatternSetParser
 public PatternSetParser()

Methods

 o setReader
 public void setReader(Reader reader)
Prepares the parser to read from a Reader.
 o readPatternSet
 public Vector readPatternSet()
Reads the from the java.io.Reader that is set and parses the information into a Vector that contiains Patterns.
Returns:
s a Vector containing the patterns if the Reader contains a representation of a PatternSet, else null.
 o checkPatternSet
 public Vector checkPatternSet(Vector patternSet)
Checks the pattern set vector to make sure it is consistent, i.e. same number of values for each row. Other checks can be added if needed here.
Returns:
s the vector given if there were no errors, eles it returns null.

All Packages  Class Hierarchy  This Package  Previous  Next  Index