Get a string builder to use of a particular size. It can be called any number of times, if a stringbuilder is in the cache then it will be returned and the cache emptied. subsequent calls will return a new stringbuilder.
Parameters
- capacity
- The capacity.
Return Value
A StringBuilder instance is cached in Thread Local Storage and so there is one per thread