code: protected StringBuilder addAllBuffer(List<String> commandList,StringBuilder buffer)
      {
          commandList.add(buffer.toString());
          buffer.delete(0,buffer.length());
  
          return buffer;
      }
docs: Updates the command list and the buffer.
  
  @param   commandList
  The command list to update
  @param   buffer
  The input buffer
  @return  The updated buffer