code: public void clear() {
  		//release a static buffer if possible
  		if (_buffersToReuse != null && !_buffersToReuse.isEmpty()) {
  			StaticBuffers.getInstance().releaseByteBuffer(BUFFER_KEY, _buffersToReuse.peek());
  		} else if (!_buffers.isEmpty()) {
  			StaticBuffers.getInstance().releaseByteBuffer(BUFFER_KEY, _buffers.get(0));
  		}
  		
  		if (_buffersToReuse != null) {
  			_buffersToReuse.clear();
  		}
  		_buffers.clear();
  		_position = 0;
  		_flushPosition = 0;
  		_size = 0;
  	}
docs: Clear the buffer and reset size and write position