code: protected StringBuilder addPart(List<String> commandList,StringBuilder buffer,int endIndex,boolean typeSpace)
      {
          int delta=1;
          if(typeSpace)
          {
              delta=0;
          }
          
          String part=buffer.substring(delta,endIndex);
          commandList.add(part);
          buffer.delete(0,endIndex+delta);
  
          return buffer;
      }
docs: Updates the command list and the buffer.
  
  @param   commandList
  The command list to update
  @param   buffer
  The input buffer
  @param   endIndex
  The end index in the buffer
  @param   typeSpace
  True space, false for quote
  @return  The updated buffer