org.tuckey.web.filters.urlrewrite.utils
Class RegexMatcher

java.lang.Object
  extended by org.tuckey.web.filters.urlrewrite.utils.RegexMatcher
All Implemented Interfaces:
StringMatchingMatcher

public class RegexMatcher
extends Object
implements StringMatchingMatcher

Simple wrapper for java.util.regex.Matcher.

See Also:
Matcher

Constructor Summary
RegexMatcher(Matcher matcher)
           
 
Method Summary
 int end()
           
 boolean find()
           
 String group(int groupId)
           
 int groupCount()
           
 boolean isFound()
           
 boolean isMultipleMatchingSupported()
           
 String replaceAll(String replacement)
           
 void reset()
           
 int start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegexMatcher

public RegexMatcher(Matcher matcher)
Method Detail

find

public boolean find()
Specified by:
find in interface StringMatchingMatcher
See Also:
Matcher.find()

isFound

public boolean isFound()
Specified by:
isFound in interface StringMatchingMatcher

reset

public void reset()
Specified by:
reset in interface StringMatchingMatcher

replaceAll

public String replaceAll(String replacement)

groupCount

public int groupCount()
Specified by:
groupCount in interface StringMatchingMatcher

group

public String group(int groupId)
Specified by:
group in interface StringMatchingMatcher

end

public int end()
Specified by:
end in interface StringMatchingMatcher

start

public int start()
Specified by:
start in interface StringMatchingMatcher

isMultipleMatchingSupported

public boolean isMultipleMatchingSupported()
Specified by:
isMultipleMatchingSupported in interface StringMatchingMatcher


Copyright © 2001-2012 Paul Tuckey. All Rights Reserved.