java.lang.Object sun.misc.RegexpPoolA class to represent a pool of regular expressions. A string can be matched against the whole pool all at once. It is much faster than doing individual regular expression matches one-by-one.
|Method from sun.misc.RegexpPool Summary:|
|add, delete, match, matchNext, print, replace, reset|
|Methods from java.lang.Object:|
|clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait|
|Method from sun.misc.RegexpPool Detail:|
public void add(String re, Object ret) throws REException
public Object matchNext(String s)
public void print(PrintStream out)
public void reset()
Multithreading note: reset/nextMatch leave state in the regular expression pool. If multiple threads could be using this pool this way, they should be syncronized to avoid race hazards. match() was done in such a way that there are no such race hazards: multiple threads can be matching in the same pool simultaneously.