Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.forum.renderer.filter.regex.jdk
Interface Substitution


public interface Substitution


Method Summary
 void handleMatch(java.lang.StringBuffer buffer, JdkMatchResult result)
          When substituting matches in a matcher, the handleMatch method of the supplied substitution is called with a MatchResult.
 

Method Detail

handleMatch

void handleMatch(java.lang.StringBuffer buffer,
                 JdkMatchResult result)
When substituting matches in a matcher, the handleMatch method of the supplied substitution is called with a MatchResult. This method then does something with the match and replaces the match with some output, like replace all 2*2 with (2*2 =) 4.

Parameters:
buffer - StringBuffer to append the output to
result - MatchResult with the match

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.