Name: jl125535 Date: 06/22/2004
A DESCRIPTION OF THE REQUEST :
The methods appendReplacement and appendTail in java.util.regex.Matcher would be even more effective if there were counterparts that used the Appendable interface as parameters and/or return values.
public Matcher appendReplacement(Appendable sb, String replacement)
public Appendable appendTail(Appendable sb)
Since these methods are used to build strings, then I could easily use a StringBuilder or a PrintWriter as a replacement for StringBuffer, thus saving synchronization or copying overhead.
(Incident Review ID: 280741)