commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Colebourne <scolebou...@btopenworld.com>
Subject Re: [lang] Entities question
Date Tue, 18 Apr 2006 22:18:28 GMT
Henri Yandell wrote:
> Any ideas why there are unescape(String);String and unescape(Writer,
> String) implementations in Entities - independently implemented? They
> look like clones of each other - just one has nicer variable names.

Typiclally you need a StringBuffer and a Writer variant of the same 
method otherwise you have to catch an exception and create an object.

Depends how much you are fussed about object creation or impossible 
exceptions.

In Joda-Time we often have both implementations even with code duplication.

Stephen

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message