returnStringBuffer method

void returnStringBuffer(
  1. StringBuffer buffer
)

Returns a StringBuffer to the pool

Implementation

void returnStringBuffer(StringBuffer buffer) {
  if (_stringBufferPool.length < _maxPoolSize) {
    buffer.clear();
    _stringBufferPool.add(buffer);
  }
}