Vector patterns;
Vector ids;
PatternMatcher matcher;
public PropsMatcher(InputStream is) throws IOException {
PatternCompiler compiler=new Perl5Compiler();
matcher=new Perl5Matcher();
// read in a properties file
Vector v=readPropertiesVector(is);
patterns=new Vector();
ids=new Vector(v.size());
// prepare separate vectors of compiled patterns
// and mapped ids
for(int i=0;i<v.size();i++) {
String[] temp=(String[]) v.elementAt(i);
// compile a pattern
try {
Pattern p=compiler.compile(temp[0]);
patterns.addElement(p);
// save the id
ids.addElement(temp[1]);
} catch (MalformedPatternException mpe) {
// omit entry, give warning*