| java.lang.Object org.archive.util.PatternMatcherRecycler
PatternMatcherRecycler | public class PatternMatcherRecycler (Code) | | Utility class to retain a compiled Pattern and multiple corresponding
Matcher instances for reuse.
author: gojomo |
PatternMatcherRecycler | public PatternMatcherRecycler(Pattern p)(Code) | | |
freeMatcher | public void freeMatcher(Matcher m)(Code) | | Return the given Matcher to the reuse stack, if stack is
not already at its maximum size.
Parameters: m - the Matcher to save for reuse |
getMatcher | public Matcher getMatcher(CharSequence input)(Code) | | Get a Matcher for the internal Pattern, against the given
input sequence. Reuse an old Matcher if possible, otherwise
create a new one.
Parameters: input - CharSequence to match Matcher set against the the input sequence |
|
|