public static interface

StringUtils.ReplacementCallback

chan.util.StringUtils.ReplacementCallback

Class Overview

Replacement callback for replaceAll methods.

Summary

Public Methods
abstract String getReplacement(Matcher matcher)

Provides a replacement for found result.

Public Methods

public abstract String getReplacement (Matcher matcher)

Provides a replacement for found result.

Use group() and group(int) methods of given matcher to extract necessary values. Don't modify this matcher's state!

You can't use group references like $1 in replacement.

Parameters
matcher Matcher: Match result holder.
Returns
String Replacement string.